Benoit opened SPR-16838 and commented
A sort was added in #18657 but the default File#compareTo depends upon the underlying system.
The ordering of the ressources returned by PathMatchingResourcePatternResolver#retrieveMatchingFiles may differ between OS (Windows, Unix).
This leads to subtle bugs hard to track.
This PR replace the default sort with one based on the file name.
Affects: 5.0.6
Issue Links:
Referenced from: pull request #1832, and commits bb6ab5d