Packageorg.as3coreaddendum.system
Interfacepublic interface IComparator
Implementors AlphabeticalComparator, BooleanComparator, DateComparator, IndexComparator, NumberComparator, PriorityComparator, PriorityIndexComparator, PropertyComparator, StringComparator

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.