When I use the PHP function "readdir", items are always sorted by date. Is it possible to sort them by alphabetical order? In my site www.leptitmusette.fr.st the page "Les Grilles" has to be sorted so and I don't know how to do! :o(
have you tried something like this? : $h=opendir('.'); while (false !== ($file = readdir($h))) { $dir_array[] = $file; } closedir($h); natsort($dir_array);
$dir_array will be sorted now... (you could use sort() too.)
Excellent, thank you! I've done it, it works perfectly :o)