qsort - sort a table of data void qsort(void *base, size_t nel,
size_t width, int (*compar)(const void *, const void *)); [CX]
The functionality described on this reference page is aligned
with the ISO C standard. Any conflict between the requirements
described here and the ISO C standard is unintentional. This
volume of IEEE Std 1003.1-2001 defers to the ISO C standard. The
qsort() function shall sort an array of nel objects, the initial
element of which is pointed to by base. The size of each object,
in bytes, is specified by the width argument. If the nel
argument has the value zero, the comparison function pointed to
by compar shall not be called and no rearrangement shall take
place. The application shall ensure that the comparison function
pointed to by compar does not alter the contents of the array.
The implementation may reorder elements of the array between
calls to the comparison function, but shall not alter the
contents of any individual element. When the same objects
(consisting of width bytes,