Packagecom.ericfeminella.collections
Classpublic final class CollectionSortUtil

Utility class which provides an all static API for sorting an ICollectionView.

See also

mx.collections.ICollectionView;
mx.collections.SortField
mx.collections.Sort


Public Methods
 MethodDefined by
  
sortOn(key:String, collection:ICollectionView, caseInsensitive:Boolean = false, descending:Boolean = false, numeric:Boolean = false):void
[static] Sorts a concrete ICollectionView implementation, such as ArrayCollection, based on a specified key.
CollectionSortUtil
Method detail
sortOn()method
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