void __far qsort(void __near *base, size_t nmemb, size_t size, int (__far *compar)(const void __near *, const void __near *));
void __far _COM_qsort_f(void __far *base, size_t nmemb, size_t size, int (__far *compar)(const void __far *, const void __far *));
This function sorts the array pointed to by base into ascending order in relation to the comparison function pointed to by compar. nmemb is the number of array elements, and size is the size of each element. The comparison function pointed to by compar is the same as the one described for bsearch.
If two elements are equal, their order when they are aligned in the array cannot be guaranteed.