note 45799 deleted from function.array-multisort by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 19 Sep 2004 18:26:07 +0000 |
| Subject: | note 45799 deleted from function.array-multisort by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76983@lists.php.net to get a copy of this message | ||
Note Submitter: cbutler at AcmeEnterprises dot com
----
sdavey's note was a big help to me, partly because this complex function is seriously
under-documented. It makes no mention of the use of that trailing "array" parameter,
though Mr. Davey intuited it nicely.
Based on my own code, I suspect Mr. Davey's code can be simplified slightly:
array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $arr);
may work as:
array_multisort($volume, SORT_DESC, $arr);
No guarantees, but my similar needs and code worked fine with that simplification.
All you contributors to the php.net forum rock!
Thanks...