function Finder::sortByCaseInsensitiveName
Sorts files and directories by name case insensitive.
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 469
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function sortByCaseInsensitiveName(bool $useNaturalSort = false) : static {
$this->sort = $useNaturalSort ? SortableIterator::SORT_BY_NAME_NATURAL_CASE_INSENSITIVE : SortableIterator::SORT_BY_NAME_CASE_INSENSITIVE;
return $this;
}