Re: Sort a multi-dimensional array on a certain key followed by another key

From: Date: Sat, 28 Mar 2009 17:09:57 +0000
Subject: Re: Sort a multi-dimensional array on a certain key followed by another key
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-290794@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. > looks like a job for array_multisort() function http://php.net/array_multisort virgil http://www.jampmark.com

« previous php.general (#290794) next »