Re: Re: PHP 4.0 Bug #5730 Updated: sort and rsort are not 'opposites'
| From: | jalal | Date: | Sun, 23 Jul 2000 12:15:43 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #5730 Updated: sort and rsort are not 'opposites' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25569@lists.php.net to get a copy of this message | ||
On Sun, 23 Jul 2000 14:35:20 +0300 (IDT), Stanislav Malyshev wrote:
>j>> However, I would expect the results from sort and rsort to be
>j>> symmetric... which they aren't.
>
>Well, in fact nobody promised you this. When you get sort with duplicates
>(i.e., keys having same sort value), you won't get sort and rsort
>symmetric.
>
Fair enough, so really, its best to *always* specify the type of the
sort needed.
thanks
-- jalal --