At 1/24/2007 10:12 PM, William Stokes wrote:
How can I sort an array like this so that it would be ASC ordered by the [1]
key in subarrays? I need to maintain only the subarray key - value pairs.
(Do I make sense?)

Array
(
    [0] => Array
        (
            [0] => Logo
            [1] => NameC
            [2] => Home
            [3] => url
        )

    [1] => Array
        (
            [0] => Logo
            [1] => NameA
            [2] => Home
            [3] => url
        )

    [2] => Array
        (
            [0] => Logo
            [1] => NameG
            [2] => Home
            [3] => url
        )
}


Try multisort:
http://php.net/array_multisort

Regards,

Paul
__________________________

Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to