Re: PHP 4.0 Bug #6512: sort() Does not sort stings as expected
| From: | Ron Chmara | Date: | Sun, 03 Sep 2000 12:12:10 +0000 |
| Subject: | Re: PHP 4.0 Bug #6512: sort() Does not sort stings as expected | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-31794@lists.php.net to get a copy of this message | ||
jmoore@php.net wrote:
>
> From: jmoore@php.net
> Operating system: *
> PHP version: 4.0.2
> PHP Bug Type: Misbehaving function
> Bug description: sort() Does not sort stings as expected
>
> When using sort, it sorts by ASCII code and not alphabetically, this might be what was intended
> but the function does not behave as might be expected, take the following example:
AA,Ab,AC,AJ,AR vs. AA,AC,AJ,AR,Ab
See natsort(), and, in particular, natcasesort().
-Bop
--
Brought to you from iBop the iMac, a MacOS, Win95, Win98, LinuxPPC machine,
which is currently in MacOS land. Your bopping may vary.