[thelist] php - sorting multidimensional arrays

Jose Ngo chilijoe at gmail.com
Wed Sep 29 05:04:09 CDT 2004


>> Thanks for that - I'll have a read and see if I can understand it. 
Would this method allow
>> you to sort say by 'wins' and then by 'pf'?

> This should be possible using a custom callback function with usort.

Just like to add, in the user contributed notes somebody already took
a shot on this, the function SortArray by Raveler would be the one you
can use.

To use:
$sorted_array = SortArray($orig_array, "win", "DESC", "pf", "ASC");


More information about the thelist mailing list