SortFuncADTArray
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.
Parameters
int index1
First index to compare.
int index2
Second index to compare.
Array that is being sorted (order is undefined).
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