Re: [PHP-DEV] Re: zend_hash_sort_ex() From: Andi Gutmans (andi <email protected>)
Date: 10/26/99

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 <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>