SortFunc1D

Last Updated2024-06-08
Created At2007-02-26

Sort comparison function for 1D array elements.

Notes

You may need to use explicit tags in order to use data properly.

int (int elem1, int elem2, const int[] array, Handle hndl)

Parameters

int elem1
First element to compare.
int elem2
Second element to compare.
const int[] 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