STAB_SortByValue

The STAB_SortByValue function sorts the elements in a STAB object using the associated float values.

extern STAB_SortByValue
  float handle         // handle to STAB
  float revflag        // (optional) sort descending flag

Parameters

handle
[in] Handle to a STAB object previously returned from STAB_Create.
revflag
[in] If specified and non-zero, the list is sorted in reverse (descending) order.

Remarks

If handle is not a valid STAB handle, an error message will be printed to the console.