You have a wrong parameter. Array_multisort requires an array, not a multi-dimensional array. You have to modify $fileArray a bit. Now it's $fileArray[$counter][0], change it to $fileArray[0][$counter]. Then you can sort it easily. For example:
array_multisort($fileArray[0], SORT_ASC, SORT_STRING);//sorts by names.
Have you noticed when you use $file = readdir($dir_handle) you get first "." and then ".." and but then real filenames. Yep, it's the current directory "." and the directory above ".."
as in ms dos;
CD..
Fyron, did you get the sorting working or did you lost interest to the whole thing?
__________________
'The surest sign that there is intelligent life elsewhere in the universe is that none of it has tried to contact us.' Calvin and Hobbes
Are you tough enough to be the King of the Hill?