Sort ignoring case

This commit is contained in:
Beu 2022-04-10 22:18:49 +02:00
parent cdd89da287
commit a920dd98b6

View File

@ -245,7 +245,8 @@ class DirectoryBrowser implements ManialinkPageAnswerListener {
return false;
}
$mapFiles = array();
$dirFiles = scandir($directory);
$dirFiles = scandir($directory, SCANDIR_SORT_NONE);
natcasesort($dirFiles);
foreach ($dirFiles as $fileName) {
if (FileUtil::isHiddenFile($fileName)) {
continue;