Re: Sorting Bug / Wrong behavior?
| From: | John Coggeshall | Date: | Tue, 10 Aug 2004 20:47:44 +0000 |
| Subject: | Re: Sorting Bug / Wrong behavior? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12085@lists.php.net to get a copy of this message | ||
Which generic sort function? They all use the same sorting code as far
as I can tell.
John
On Tue, 2004-08-10 at 15:59, Rasmus Lerdorf 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