Re: Sorting Bug / Wrong behavior?
| From: | Sterling Hughes | Date: | Tue, 10 Aug 2004 20:16:11 +0000 |
| Subject: | Re: Sorting Bug / Wrong behavior? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12084@lists.php.net to get a copy of this message | ||
no argument there, having a few more reasonable sort options/methods
makes sense to me, so long as they offer new functionality (as opposed
to fixing an "inconsistency") and don't affect the default
behaviour...
-sterling
On Tue, 10 Aug 2004 12:59:09 -0700 (PDT), Rasmus Lerdorf <rasmus@php.net> wrote:
> On Tue, 10 Aug 2004, Sterling Hughes wrote:
> > i don't think sort() should be changed - this is how php works, for
> > better or sometimes worse, changing it any other way would break BC,
> > and it doesn't make much sense.
>
> I agree that we should keep the generic sort function the same. Might be
> nice to add some more sort flags though. It's somewhat annoying that the
> sort_string sort option doesn't use strcoll, for example, so you have to
> use a usort to get proper string sorting in most languages.
>
> -Rasmus
>