Posted by Abhi on 03/13/06 02:13
Hi!
I am wondering if someone can point me to the needed sort function. There are so many of
them that I simply got lost by reading their descriptions. I try to explain what I need.
I have a multidimensional array and I have a function that outputs it as a table.
$arr[0] contains an array that contains usernames
$arr[1] contains an array that contains real names
$arr[2] contains an array that contains e-mails
etc...
$arr[last] contains integers for users "levels"
My function outputs users with their datas in the columns. Each column means one user.
Now I want to sort this whole array by levels. So, all other data should be sorted
according to the pattern in levels row.
How is this thing done?
Please advice!
Abhi
[Back to original message]
|