note 93157 added to function.sort
| From: | danm68 at gmail dot com | Date: | Wed, 26 Aug 2009 04:59:46 +0000 |
| Subject: | note 93157 added to function.sort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159896@lists.php.net to get a copy of this message | ||
sort() used with strings doesn't sort just alphabetically. It sorts all upper-case strings
alphabetically first and then sorts lower-case strings alphabetically second.
Just in case anyone was as confused as I was and I've never seen this mentioned anywhere.
----
Server IP: 209.41.74.194
Probable Submitter: 210.84.60.191
----
Manual Page -- http://www.php.net/manual/en/function.sort.php
Edit -- https://master.php.net/note/edit/93157
Del: integrated -- https://master.php.net/note/delete/93157/integrated
Del: useless -- https://master.php.net/note/delete/93157/useless
Del: bad code -- https://master.php.net/note/delete/93157/bad+code
Del: spam -- https://master.php.net/note/delete/93157/spam
Del: non-english -- https://master.php.net/note/delete/93157/non-english
Del: in docs -- https://master.php.net/note/delete/93157/in+docs
Del: other reasons-- https://master.php.net/note/delete/93157
Reject -- https://master.php.net/note/reject/93157
Search -- https://master.php.net/manage/user-notes.php