array_multisort into Natural order?
| From: | George Langley | Date: | Mon, 13 Dec 2010 19:59:05 +0000 |
| Subject: | array_multisort into Natural order? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-310006@lists.php.net to get a copy of this message | ||
Hi all. Can use natsort($array1) to sort a single array of filenames into a "natural
"alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc.
But using array_multisort($array1, $array2, $array3) doesn't offer a natsort option, so I end
up with 1.php, 10.php, 2.php, 20.php, 5.php, etc.
Anyone have a solution to this limitation already? Nothing found in the archives or Googling.
Thanks.
George Langley Multimedia Developer Audio/Video Editor Musician, Arranger, Composer
www.georgelangley.ca