would usort() be better for this? Martin
> -----Original Message----- > From: Justin French [mailto:[EMAIL PROTECTED] > Sent: Thursday, 5 February 2004 3:33 PM > To: php > Subject: [PHP] multi dimension array sort help > > > Hi, > > I've read and re-read array_multisort(), but still can't get > a grip on > how to sort my array: > > Array > ( > [0] => Array > ( > [path_id] => 3 > [year] => 2004 > [month] => 02 > [day] => 05 > [hits] => 3 > [path] => home > ) > > [1] => Array > ( > [path_id] => 2 > [year] => 2004 > [month] => 02 > [day] => 05 > [hits] => 1 > [path] => plan > ) > > [2] => Array > ( > [path_id] => 7 > [year] => 2004 > [month] => 02 > [day] => 05 > [hits] => 1 > [path] => specials > ) > > ) > > > In this case, I'd like to sort the entire array on [path]. > Can anyone > provide some tips or an example to start from? > > Justin French > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php