Sort files in logical rather than dictionary order (#9012)

This commit is contained in:
hokasha2016 authored and Aaron van Geffen committed 2019-04-03 00:16:47 +02:00
1 parent 1ff1f6d126
commit dc90b2873a
3 files changed
+8 -3

No files matched your search

+4
View File
@@ -121,6 +121,10 @@ The following people are not part of the development team, but have been contrib
* Jason Myre (jmyre1999)
* Nicole Wright (nicolewright)
* Josh Tucker (joshtucker132)
* Hussein Okasha (Hokasha2016)
* Brandon Dupree (Bdupree5)
* Zetao Ye (ZbrettonYe)
* Jordan Arevalos (Jarevalos2017)
## Toolchain
* (Balletie) - macOS
+1
View File
@@ -5,6 +5,7 @@
- Feature: [#8481] Multi-threaded rendering.
- Feature: [#8919] Allow setting ride price from console.
- Feature: [#8963] Add missing Czech letters to sprite font, use sprite font for Czech.
- Change: [#7877] Files are now sorted in logical rather than dictionary order.
- Change: [#8688] Move common actions from debug menu into cheats menu.
- Fix: [#5579] Network desync immediately after connecting.
- Fix: [#5905] Urban Park merry-go-round has entrance and exit swapped (original bug).
+3 -3
View File
@@ -786,15 +786,15 @@ static bool list_item_sort(LoadSaveListItem& a, LoadSaveListItem& b)
switch (gConfigGeneral.load_save_sort)
{
case SORT_NAME_ASCENDING:
return strcicmp(a.name.c_str(), b.name.c_str()) < 0;
return strlogicalcmp(a.name.c_str(), b.name.c_str()) < 0;
case SORT_NAME_DESCENDING:
return -strcicmp(a.name.c_str(), b.name.c_str()) < 0;
return -strlogicalcmp(a.name.c_str(), b.name.c_str()) < 0;
case SORT_DATE_DESCENDING:
return -difftime(a.date_modified, b.date_modified) < 0;
case SORT_DATE_ASCENDING:
return difftime(a.date_modified, b.date_modified) < 0;
default:
return strcicmp(a.name.c_str(), b.name.c_str()) < 0;
return strlogicalcmp(a.name.c_str(), b.name.c_str()) < 0;
}
}