Re: sorting a multimensional array
| From: | no-spam----me at larrykagan dot com | Date: | Thu, 20 Feb 2003 01:24:10 +0000 |
| Subject: | Re: sorting a multimensional array | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25779@lists.php.net to get a copy of this message | ||
http://www.php.net/array_multisort is your answer.
Mark Snijders <Mark.Snijders@atosorigin.com> wrote:
> hello,
> i've got the next array:
> Array
> (
> [testsubnet] => Array
> (
> [2690910720] => 255.255.255.0
> )
> [GLN-subnetsirangevoorgedelegeerddomein] => Array
> (
> [2886735616] => 255.255.255.0
> )
> [testsubnet2] => Array
> (
> [1209360384] => 255.255.224.0
> )
> [lpd (tpg-nl1)] => Array
> (
> [175964160] => 255.255.0.0
> )
> }
> I need to sort it by name or by the big nummer between []
> to sort it by name i do this:
> ksort($ARRAYNAME);
> and it works fine, but how do I sort by the big number between [] ...
> I really don't get it...
> thanks for the help..
> Mark,