php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46442 sort(), sorts the chars "?, ? and ?" incorrectly
Submitted: 2008-10-31 22:34 UTC Modified: 2008-10-31 23:11 UTC
From: daniel at danwebs dot dk Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.2CVS-2008-10-31 (snap) OS: Vista home
Private report: No CVE-ID: None
 [2008-10-31 22:34 UTC] 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:
--------------
???

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-31 22:49 UTC] 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 23:11 UTC] daniel at danwebs dot dk
EDIT: Thought I checked it all. Sorry about that, and thank you for your time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 06:01:30 2024 UTC