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…
Reference in New Issue