public static function sortOn(key:String, collection:ICollectionView, caseInsensitive:Boolean = false, descending:Boolean = false, numeric:Boolean = false):void
Sorts an ICollectionView such as ArrayCollection, based on specified
item key
Parameters
| key:String — A property in which to base the sort
|
|
| collection:ICollectionView — A collection of items in which the sort is to be applied
|
|
| caseInsensitive:Boolean (default = false ) — specifies if a caseInsensitive sort is to be applied
|
|
| descending:Boolean (default = false ) — specifies if a descending sort is to be applied
|
|
| numeric:Boolean (default = false ) — specifies if a numeric sort is to be applied
|