

#include <nitro/math/qsort.h>
typedef s32 (*MATHCompareFunc) (void *elem1, void *elem2);
| elem1 | Pointer to Element 1. |
| elem2 | Pointer to Element 2. |
Returns a positive number when Element 1 should follow Element 2.
Returns a negative number when Element 1 should precede Element 2.
Be sure to return 0 if the comparison shows Element 1 is equal to Element 2.
The comparison function type given for sorting with the MATH_QSort function.
If a positive number is returned, the first element will be arranged further back in the array. If a negative is returned, the second element will be arranged further back in the array.
2006/07/19 Revised the description of return values.
2006/04/21 Added a description of return values.
2005/04/12 Initial version.
CONFIDENTIAL