Just looking at it quickly (and not testing it or anything like that), I think you could just replace
$sorts[] = filemtime($fullpath);
with
$sorts[] = $fullpath;
to make it sort by the file name/directory instead of the created date, and if you want them to show A to Z instead of Z-A you’d also want to change
array_multisort($sorts, SORT_DESC, $details[’files’]);
to
array_multisort($sorts, SORT_ASC, $details[’files’]);
More info here.
$details['files'][$count]['THUMB'] = $file;
Thanks for the credit, but you didn’t have to do that. You’ve helped others out, and I’m more than happy to help you out whenever possible. I may have a question that you know the answer to next week!
It really helped me out. ^.^