mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +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()
|
public function rewind()
|
||||||
{
|
{
|
||||||
if ($this->files === null) {
|
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->files->rewind();
|
||||||
$this->queue = array();
|
$this->queue = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user