Utility class which provides an all static API for sorting an
ICollectionView
.
mx.collections.ICollectionView;
mx.collections.SortField
mx.collections.Sort
public static function sortOn(key:String, collection:ICollectionView, caseInsensitive:Boolean = false, descending:Boolean = false, numeric:Boolean = false):void
Sorts a concrete ICollectionView
implementation,
such as ArrayCollection
, based on a specified key.
Parameters
| key:String — property in which to base the sort
|
|
| collection:ICollectionView — 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
|