Re: sorting multidimensional array by a second level value

From: Date: Fri, 17 Sep 2004 19:50:56 +0000
Subject: Re: sorting multidimensional array by a second level value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197022@lists.php.net to get a copy of this message
> I'd like to sort the array based on one of the values in the field > href, description, or time. Is there a canonical way of doing this? Probably easiest to write your own sort function the use usort(), http://www.php.net/usort has pretty good documentation on how to accomplish this. Steve

« previous php.general (#197022) next »