Finder - allow sorting when searching in multiple directories
This commit is contained in:
parent
f6b4f89f8f
commit
24a3cd3540
@ -502,7 +502,8 @@ class Finder implements \IteratorAggregate
|
||||
}
|
||||
|
||||
if ($this->sort) {
|
||||
$iterator = new Iterator\SortableIterator($iterator, $this->sort);
|
||||
$iterator_aggregate = new Iterator\SortableIterator($iterator, $this->sort);
|
||||
$iterator = $iterator_aggregate->getIterator();
|
||||
}
|
||||
|
||||
return $iterator;
|
||||
|
Reference in New Issue
Block a user