Sort a multi-dimensional array on a certain key followed by another key
| From: | TS | Date: | Sat, 28 Mar 2009 01:46:38 +0000 |
| Subject: | Sort a multi-dimensional array on a certain key followed by another key | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290781@lists.php.net to get a copy of this message | ||
Ok so, I have an array
[0(index)][1st key][2nd key]
Basically I don't care about the index. As a matter of fact I'd prefer it
reset to still be in order afterwards.
However, I need to sort the 1st key and keep correlation w the second key.
Then sort on the second key.
I have video volumes and scenes like
[0][110][1]
[1][110][3]
[2][110][2]
[3][110][4]
Any help would be much appreciated.