Packagecom.addicted2flash.util.sorter
Classpublic class ArrayHeapSorter
ImplementsIArraySorter

Heap sorter algorithm class for sorting Arrays based on heap-structure ordered with IComparator configured at construction time.



Public Methods
 MethodDefined by
  
Create a new ArrayHeapSorter
ArrayHeapSorter
  
sort(a:Array):void
sorting Arrays
ArrayHeapSorter
Constructor detail
ArrayHeapSorter()constructor
public function ArrayHeapSorter(cmp:IComparator)

Create a new ArrayHeapSorter

Parameters
cmp:IComparatorIComparator for ordering elements
Method detail
sort()method
public function sort(a:Array):void

sorting Arrays

Parameters
a:Array — Array