Packageorg.flexunit.runner.manipulation
Classpublic class OrderArgumentSorter
InheritanceOrderArgumentSorter Inheritance Object
Implements ISorter

A MetadataSorter compares two values to determine which value is greater.



Public Properties
 PropertyDefined By
  ORDER_ARG_SORTER : ISorter
[static] ORDER_ARG_SORTER is an ISorter that sorts elements by their order argument
OrderArgumentSorter
Public Methods
 MethodDefined By
  
apply(object:Object):void
Sorts the test in runner using compare function.
OrderArgumentSorter
  
Compares its two arguments for order.
OrderArgumentSorter
Protected Methods
 MethodDefined By
  
Determines the value of the order for the argument if an order exists.
OrderArgumentSorter
Property Detail
ORDER_ARG_SORTERproperty
public static var ORDER_ARG_SORTER:ISorter

ORDER_ARG_SORTER is an ISorter that sorts elements by their order argument

Method Detail
apply()method
public function apply(object:Object):void

Sorts the test in runner using compare function.

Parameters

object:Object

compare()method 
public function compare(o1:IDescription, o2:IDescription):int

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. If the two objects are of equal order number, then we are simply going to return them in alphabetical order..

Parameters

o1:IDescriptionIDescription the first object to be compared.
 
o2:IDescriptionIDescription the second object to be compared.

Returns
int
getOrderValueFrom()method 
protected function getOrderValueFrom(object:IDescription):Number

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

Parameters

object:IDescriptionIDescription the object to have its order checked.

Returns
Number