1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

Fix: Use natural sort when sorting the file list.

This commit is contained in:
Juriy Petrochenkov
2019-09-07 13:43:50 +03:00
committed by Niels Martin Hansen
parent fb8f4119f3
commit acb63cb4d4

View File

@@ -56,7 +56,7 @@ int CDECL CompareFiosItems(const FiosItem *da, const FiosItem *db)
if ((_savegame_sort_order & SORT_BY_NAME) == 0 && da->mtime != db->mtime) {
r = da->mtime < db->mtime ? -1 : 1;
} else {
r = strcasecmp(da->title, db->title);
r = strnatcmp(da->title, db->title);
}
if (_savegame_sort_order & SORT_DESCENDING) r = -r;