Symfony\Component\Finder\Finder::sortByName
Sorts files and directories by name.
This can be slow as all the matching files and directories must be retrieved for comparison.
Signature
public function sortByName()
Returns
- Finder
- The current Finder instance