public function Finder::sort in Database Sanitize 7
Sorts files and directories by an anonymous function.
The anonymous function receives two \SplFileInfo instances to compare.
This can be slow as all the matching files and directories must be retrieved for comparison.
Return value
$this
See also
File
- vendor/
symfony/ finder/ Finder.php, line 388
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function sort(\Closure $closure) {
$this->sort = $closure;
return $this;
}