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