#46442 [Opn->Bgs]: sort(), sorts the chars "æ, ø and å" incorrectly
| From: | johannes@php.net | Date: | Fri, 31 Oct 2008 22:49:16 +0000 |
| Subject: | #46442 [Opn->Bgs]: sort(), sorts the chars "æ, ø and å" incorrectly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130387@lists.php.net to get a copy of this message | ||
ID: 46442
Updated by: johannes@php.net
Reported By: daniel at danwebs dot dk
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Vista home
PHP Version: 5.2CVS-2008-10-31 (snap)
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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