1
0
Fork 0

Fix: Use natural sort when sorting the file list.

release/1.9
Juriy Petrochenkov 2019-09-07 13:43:50 +03:00 committed by Niels Martin Hansen
parent fb8f4119f3
commit acb63cb4d4
1 changed files with 1 additions and 1 deletions

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) { if ((_savegame_sort_order & SORT_BY_NAME) == 0 && da->mtime != db->mtime) {
r = da->mtime < db->mtime ? -1 : 1; r = da->mtime < db->mtime ? -1 : 1;
} else { } else {
r = strcasecmp(da->title, db->title); r = strnatcmp(da->title, db->title);
} }
if (_savegame_sort_order & SORT_DESCENDING) r = -r; if (_savegame_sort_order & SORT_DESCENDING) r = -r;