From 7bdde8b41d348b0df9e3d29c511cb1181823ebc6 Mon Sep 17 00:00:00 2001 From: Juriy Petrochenkov Date: Sat, 7 Sep 2019 13:43:50 +0300 Subject: Fix: Use natural sort when sorting the file list. --- src/fios.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fios.cpp') diff --git a/src/fios.cpp b/src/fios.cpp index 30a505ef7..9153c53f1 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -57,7 +57,7 @@ bool FiosItem::operator< (const FiosItem &other) const if ((_savegame_sort_order & SORT_BY_NAME) == 0 && (*this).mtime != other.mtime) { r = (*this).mtime - other.mtime; } else { - r = strcasecmp((*this).title, other.title); + r = strnatcmp((*this).title, other.title); } if (r == 0) return false; return (_savegame_sort_order & SORT_DESCENDING) ? r > 0 : r < 0; -- cgit v1.2.3-54-g00ecf