Packagecom.addicted2flash.util.comparator
Interfacepublic interface IComparator
ImplementorsASCDataServicePriorityComparator, ASCNumberComparator, DESCDataServicePriorityComparator, DESCNumberComparator

A comparison function, which imposes a total ordering on some collection of objects.



Public Methods
 MethodDefined by
  
compare(o1:*, o2:*):int
Compares its two arguments for order.
IComparator
Method detail
compare()method
public function compare(o1:*, o2:*):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.

Parameters
o1:* — the first object to be compared.
 
o2:* — the second object to be compared.

Returns
int — a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.