10000 Finder - allow sorting when searching in multiple directories · sadiqmmm/symfony@24a3cd3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24a3cd3

Browse files
committed
Finder - allow sorting when searching in multiple directories
1 parent f6b4f89 commit 24a3cd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Finder/Finder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ private function searchInDirectory($dir)
502502
}
503503

504504
if ($this->sort) {
505-
$iterator = new Iterator\SortableIterator($iterator, $this->sort);
505+
$iterator_aggregate = new Iterator\SortableIterator($iterator, $this->sort);
506+
$iterator = $iterator_aggregate->getIterator();
506507
}
507508

508509
return $iterator;

0 commit comments

Comments
 (0)
0