sorting fixes for list-files.php