mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
doc: natcasesort files
This commit is contained in:
parent
48cd99aba3
commit
0edd1b5a08
@ -222,7 +222,9 @@ class DirectoryIterator implements RecursiveIterator
|
||||
public function rewind()
|
||||
{
|
||||
if ($this->files === null) {
|
||||
$this->files = new ArrayIterator(scandir($this->path));
|
||||
$files = scandir($this->path);
|
||||
natcasesort($files);
|
||||
$this->files = new ArrayIterator($files);
|
||||
}
|
||||
$this->files->rewind();
|
||||
$this->queue = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user