Sort ignoring case
This commit is contained in:
parent
cdd89da287
commit
a920dd98b6
@ -245,7 +245,8 @@ class DirectoryBrowser implements ManialinkPageAnswerListener {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$mapFiles = array();
|
$mapFiles = array();
|
||||||
$dirFiles = scandir($directory);
|
$dirFiles = scandir($directory, SCANDIR_SORT_NONE);
|
||||||
|
natcasesort($dirFiles);
|
||||||
foreach ($dirFiles as $fileName) {
|
foreach ($dirFiles as $fileName) {
|
||||||
if (FileUtil::isHiddenFile($fileName)) {
|
if (FileUtil::isHiddenFile($fileName)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user