You are here

public function Finder::sortByName in Database Sanitize 7

Sorts files and directories by name.

This can be slow as all the matching files and directories must be retrieved for comparison.

Return value

$this

See also

SortableIterator

File

vendor/symfony/finder/Finder.php, line 404

Class

Finder
Finder allows to build rules to find files and directories.

Namespace

Symfony\Component\Finder

Code

public function sortByName() {
  $this->sort = Iterator\SortableIterator::SORT_BY_NAME;
  return $this;
}