This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Finder
Fabien Potencier 3bade96ff2 feature #27024 [Finder] added "use natural sort" option (vyshkant)
This PR was merged into the 4.2-dev branch.

Discussion
----------

[Finder] added "use natural sort" option

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #26930
| License       | MIT
| Doc PR        | symfony/symfony-docs#9671

Added `$useNaturalSort` optional argument to `Finder::sortByName()` method. If it is specified and equals to `true`, ["natural sort order" algorithm](https://en.wikipedia.org/wiki/Natural_sort_order) will be applied, which means that `strnatcmp` function will be used instead of `strcmp` (see #26930 for details).

Commits
-------

e697c7d272 [Finder] added "use natural sort" option
2018-05-30 06:00:02 +02:00
..
Comparator Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Exception fixed some deprecation messages 2017-12-31 06:12:25 +01:00
Iterator [Finder] added "use natural sort" option 2018-04-24 15:28:30 +03:00
Tests [Finder] added "use natural sort" option 2018-04-24 15:28:30 +03:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [Finder] added "use natural sort" option 2018-04-24 15:28:30 +03:00
composer.json updated version to 4.2 2018-05-07 16:51:25 +02:00
Finder.php [Finder] added "use natural sort" option 2018-04-24 15:28:30 +03:00
Glob.php [Finder] Glob wildcard while using double-star without ending slash 2017-04-10 10:50:31 -07:00
LICENSE fixed years in copyright 2018-01-03 08:23:28 +01:00
phpunit.xml.dist fail when detecting risky tests 2017-04-12 09:39:27 +02:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
SplFileInfo.php Merge branch '3.4' into 4.0 2018-05-16 11:05:32 +02:00

Finder Component

The Finder component finds files and directories via an intuitive fluent interface.

Resources