On 28.04.2014 13:06, Nick Kew wrote:
> I find myself wanting to sort an APR array.
>
> As it stands I can hack it using the array innards from apr_tables.h:
>
>     qsort(arr->elts, arr->nelts, arr->elt_size, my_compare);
>
> Any interest in APR-izing that into an apr_array_sort function
> (and a complementary apr_array_sort_r)?

Subversion uses this in any number of places. We also have functions for
sorting hash tables into arrays, if you're looking for code examples.

-- Brane

Reply via email to