Hi, I have following filename/date array Array ( [0] => Array ( [0] => 1.jpg [1] => 10.jpg [2] => 11.jpg [3] => 12.jpg [4] => 2.jpg [5] => 3.jpg [6] => 4.jpg [7] => 5.jpg [8] => 6.jpg [9] => 7.jpg [10] => 8.jpg [11] => 9.jpg ) [1] => Array ( [0] => 1026502301 [1] => 1026502312 [2] => 1026502313 [3] => 1026502550 [4] => 1026502302 [5] => 1026502304 [6] => 1026502305 [7] => 1026502619 [8] => 1026502585 [9] => 1026502308 [10] => 1026502310 [11] => 1026502311 ) )
I'm trying to sort the array by filename in Natural-Order. Array_multisort(filelist[0]),SORT_ASC,$filelist[1]) don't sort in Natural-Order usort($filelist[0],"strnatcmp"); Sorts only filenames, any ideas how to get dates also sorted? -Hessu- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php