Sorting an apr_array

2014-04-28 Thread Nick Kew
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

Re: Sorting an apr_array

2014-04-28 Thread Graham Leggett
On 28 Apr 2014, at 1:06 PM, Nick Kew n...@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

Re: Sorting an apr_array

2014-04-28 Thread Branko Čibej
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

Re: Sorting an apr_array

2014-04-28 Thread Jeff Trawick
On Mon, Apr 28, 2014 at 9:16 AM, Branko Čibej br...@apache.org wrote: 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

Re: Sorting an apr_array

2014-04-28 Thread Branko Čibej
On 28.04.2014 20:35, Jeff Trawick wrote: On Mon, Apr 28, 2014 at 9:16 AM, Branko Čibej br...@apache.org mailto:br...@apache.org wrote: 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