SortFuncADTArray

Last Updated2007-11-20
Created At2007-11-20

Sort comparison function for ADT Array elements. Function provides you with indexes currently being sorted, use ADT Array functions to retrieve the index values and compare.

int (int index1, int index2, Handle array, Handle hndl)

Parameters

int index1
First index to compare.
int index2
Second index to compare.
Handle array
Array that is being sorted (order is undefined).
Handle hndl
Handle optionally passed in while sorting.

Return Value

int -1 if first should go before second 0 if first is equal to second 1 if first should go after second