You are here

public function Finder::sortByModifiedTime in Database Sanitize 7

Sorts files and directories by the last modified time.

This is the last time the actual contents of the file were last modified.

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 476

Class

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

Namespace

Symfony\Component\Finder

Code

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