#46442 [Bgs]: sort(), sorts the chars "æ, ø and å" incorrectly
| From: | daniel at danwebs dot dk | Date: | Fri, 31 Oct 2008 23:11:02 +0000 |
| Subject: | #46442 [Bgs]: sort(), sorts the chars "æ, ø and å" incorrectly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130390@lists.php.net to get a copy of this message | ||
ID: 46442
User updated by: daniel at danwebs dot dk
Reported By: daniel at danwebs dot dk
Status: Bogus
Bug Type: Output Control
Operating System: Vista home
PHP Version: 5.2CVS-2008-10-31 (snap)
New Comment:
EDIT: Thought I checked it all. Sorry about that, and thank you for
your time.
Previous Comments:
------------------------------------------------------------------------
[2008-10-31 22:49:15] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Please midn the 2nd parameter. http://de3.php.net/sort
------------------------------------------------------------------------
[2008-10-31 22:34:37] daniel at danwebs dot dk
Description:
------------
In the Danish and Norwiegan alphabeth we have the chars Æ, Ø and Å
The correct sequence is ÆØÅ (end of alphabeth after z)
sort(), sorts it ÅÆØ
Reproduce code:
---------------
$theString="ÆØÅ";
$theString=str_split($theString);
sort($theString);
$theString=implode($theString);
echo $theString
// Outputs ÅÆØ
Expected result:
----------------
ÆØÅ
:)
Actual result:
--------------
ÅÆØ
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46442&edit=1