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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: daniel at danwebs dot dk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 08:01:32 2025 UTC