Greetings forum...
I have searched everywhere I know for the answer to my problem.
I have a two dimensional array called $data which goes something like:
$data[row][id] = blah
$data[row][amt] = blah
$data[row][qty] = blah
I need to be able to sort by "amt" and then by "qty".
My existing Perl sort for this same routine is:
@sortedbuyers = sort {$b->[2] <=> $a->[2] || $b->[1] <=> $a->[1]} @currentbuyers;
Which works fine, but we are changing the site over from Perl to PHP/MySQL.
Any help would be appreciated greatly.
Thanks for listening...
array_multisort is junk (IMHO) so any help here would be appreciated.