> Well, if the array was passed in from somewhere else and is usually more
> than one element, why would you clutter up your code checking every
> time for the one-element (or no element) case rather than assuming
> sort correctly handles all cases.
(just for the records) :)
*sorting* works in
Hi,
apparently php-users are fooled (bug 9633, private email to me) by zends
sorting on one-element arrays. In fact we do nothing there.
> if (ht->nNumOfElements <= 1) { /* Doesn't require sorting */
>
return SUCCESS;
> }
but zend_hash_sort is called with renumber=1 for s