apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Sorting an apr_array
Date Mon, 28 Apr 2014 11:27:01 GMT
++1. Perfect addition for the just-opened 1.6 branch!

On Apr 28, 2014, at 7:06 AM, Nick Kew <niq@apache.org> 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)?
> 
> -- 
> Nick Kew
> 


Mime
View raw message