note 41570 added to function.sort
| From: | php-general at lists dot php dot net | Date: | Thu, 15 Apr 2004 01:57:10 +0000 |
| Subject: | note 41570 added to function.sort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68143@lists.php.net to get a copy of this message | ||
This fucking sort function doesn't work for numbers, even with the SORT_NUMERIC flag...
sort($imageArray, SORT_NUMERIC);
returns
Array ( [0] => img/7.JPG [1] => img/8.JPG [2] => img/9.JPG [3] => img/1.JPG [4] =>
img/6.JPG [5] => img/5.JPG [6] => img/2.JPG [7] => img/3.JPG [8] => img/4.JPG )
WTF???!!!??!?!?!?!?
----
Manual Page -- http://www.php.net/manual/en/function.sort.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41570
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41570&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41570&report=yes
Search -- http://master.php.net/manage/user-notes.php