Sorts files and directories by name.
This can be slow as all the matching files and directories must be retrieved for comparison.
$this
SortableIterator
public function sortByName(bool $useNaturalSort = false) : static { $this->sort = $useNaturalSort ? SortableIterator::SORT_BY_NAME_NATURAL : SortableIterator::SORT_BY_NAME; return $this; }