Re: Re: zend_hash_sort_ex()
| From: | Andi Gutmans | Date: | Tue, 26 Oct 1999 20:28:03 +0000 |
| Subject: | Re: Re: zend_hash_sort_ex() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11926@lists.php.net to get a copy of this message | ||
At 03:14 PM 10/26/99 -0500, Andrei Zmievski wrote:
On Tue, 26 Oct 1999, Andi Gutmans wrote: No there is no way to do it currently. But I don't understand how you expect to do it. If you have 3 elements with keys 3,4,5 in a hash, it doesn't mean they are consecutive in the list. Ok, then what's a good way to sort only the elements with keys 3, 4, and 5?I think the only way to do it is to have your sort function receive a list of keys which you want sorted first, and it'll sort them in order and put all the rest at the end of the list (or leave them where they are). Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/