Re: Sorting Bug / Wrong behavior?
| From: | Rasmus Lerdorf | Date: | Tue, 10 Aug 2004 19:59:09 +0000 |
| Subject: | Re: Sorting Bug / Wrong behavior? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12081@lists.php.net to get a copy of this message | ||
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