1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Replaced the old, badly-named and badly-implemented String::compareLexicographically() method with String::compareNatural(), which uses a smarter algorithm. Also added a method StringArray::sortNatural() which uses this.

This commit is contained in:
jules 2014-06-15 10:37:31 +01:00
parent 9c8afb5b48
commit 3b88555140
9 changed files with 131 additions and 43 deletions

View file

@ -481,7 +481,7 @@ struct FileSorter
{
static int compareElements (const File& f1, const File& f2)
{
return f1.getFileName().compareIgnoreCase (f2.getFileName());
return f1.getFileName().compareNatural (f2.getFileName());
}
};