Sorting Arrays

From: Date: Thu, 28 Dec 2000 16:56:59 +0000
Subject: Sorting Arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32090@lists.php.net to get a copy of this message
I have an array. I would like to sort it on the minutes field I read the docs but most was for 1D stuff not multiple dimensions. Any help would be appreciated. -Dave Array (
    [0] => Array
        (
            [username] => petion
            [nas] => pm3-0
            [port] => S1
            [timeon] => Thu 11:05
            [minutes] => 46
        )
    [1] => Array
        (
            [username] => cnrealtor
            [nas] => pm3-0
            [port] => S2
            [timeon] => Thu 11:09
            [minutes] => 42
        )
    [2] => Array
        (
            [username] => lrich
            [nas] => pm3-0
            [port] => S4
            [timeon] => Thu 11:45
            [minutes] => 6
        )
    [3] => Array
        (
            [username] => bobsvi
            [nas] => pm3-0
            [port] => S3
            [timeon] => Thu 10:55
            [minutes] => 56
        )
    [4] => Array
        (
            [username] => wick
            [nas] => pm3-0
            [port] => S6
            [timeon] => Thu 11:46
            [minutes] => 5
        )
    [5] => Array
        (
            [username] => bmcycles
            [nas] => pm3-0
            [port] => S7
            [timeon] => Thu 11:46
            [minutes] => 5
        )
}

« previous php.general (#32090) next »