Re: Multi-Sort -- how to do this?
| From: | Daniel Brown | Date: | Thu, 18 Jun 2009 12:51:22 +0000 |
| Subject: | Re: Multi-Sort -- how to do this? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294231@lists.php.net to get a copy of this message | ||
On Thu, Jun 18, 2009 at 05:11, Ford, Mike<M.Ford@leedsmet.ac.uk> wrote:
>
> array_multisort($d, $a, $b, $c) should do what you want,
That'll actually hit it right on the head, too, Mike. My example
from last night sorted and combined the arrays to be keyed and
sortable by $d --- which, re-reading this morning, is not what Tedd
wanted. He wants to be able to run a loop and echo out each
individual array in place. In which case, array_multisort() is
proper. Show-off.
--
</Daniel P. Brown>
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000