This function in Subversion source is marked as something that should go into APR, which I find would be very useful indeed.
Two questions: - is ASF legally OK with "pinching" this code from Subversion - do others see this function as something useful in APR URLs: http://svn.collab.net/repos/svn/trunk/subversion/libsvn_subr/sorts.c http://svn.collab.net/repos/svn/trunk/subversion/LICENSE -- Bojan