sorting multidimensional array by a second level value

From: Date: Fri, 17 Sep 2004 19:05:22 +0000
Subject: sorting multidimensional array by a second level value
Groups: php.general 
Request: Send a blank email to php-general+get-197011@lists.php.net to get a copy of this message
I have an array $links like this: [1] => Array ( [href] => http://www.poetrymagazine.org/epstein_sept_prose.html [description] => Thank You, No [time] => 2004-09-17T17:30:32Z ) [2] => Array ( [href] => http://110am.com/projects/manuscript/ [description] => Manuscript [time] => 2004-09-16T19:25:14Z ) 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? c -- Chris Lott

« previous php.general (#197011) next »