A field sorter capable of sorting fields based on the order argument
public function FieldMetaDataSorter(invert:Boolean = false)
Constructor
Parameters | invert:Boolean (default = false ) — indicates a top down or bottom up sort
|
public function compare(field1:Field, field2:Field):int
Compares field1 and field2 indicating which is first or second in order
Parameters
Returns protected function getOrderValueFrom(field:Field):Number
Determines the value of the order for the argument if an order exists.
Parameters
| field:Field — Field the object to have its order checked.
|
Returns
Thu Apr 10 2014, 08:07 AM +10:00