Packageorg.flexunit.runner.manipulation.fields
Classpublic class FieldMetaDataSorter
InheritanceFieldMetaDataSorter Inheritance Object
Implements IFieldSorter

A field sorter capable of sorting fields based on the order argument



Public Methods
 MethodDefined By
  
FieldMetaDataSorter(invert:Boolean = false)
Constructor
FieldMetaDataSorter
  
compare(field1:Field, field2:Field):int
Compares field1 and field2 indicating which is first or second in order
FieldMetaDataSorter
Protected Methods
 MethodDefined By
  
getOrderValueFrom(field:Field):Number
Determines the value of the order for the argument if an order exists.
FieldMetaDataSorter
Constructor Detail
FieldMetaDataSorter()Constructor
public function FieldMetaDataSorter(invert:Boolean = false)

Constructor

Parameters
invert:Boolean (default = false) — indicates a top down or bottom up sort
Method Detail
compare()method
public function compare(field1:Field, field2:Field):int

Compares field1 and field2 indicating which is first or second in order

Parameters

field1:Field
 
field2:Field

Returns
int
getOrderValueFrom()method 
protected function getOrderValueFrom(field:Field):Number

Determines the value of the order for the argument if an order exists.

Parameters

field:FieldField the object to have its order checked.

Returns
Number