multi dimension array sort help

From: Date: Thu, 05 Feb 2004 04:33:03 +0000
Subject: multi dimension array sort help
Groups: php.general 
Request: Send a blank email to php-general+get-176862@lists.php.net to get a copy of this message
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

« previous php.general (#176862) next »