summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuriy Petrochenkov <jupetr@gmail.com>2019-09-07 13:43:50 +0300
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-09-08 22:18:53 +0200
commit7bdde8b41d348b0df9e3d29c511cb1181823ebc6 (patch)
tree0966e7458e3d779f804ecc40f5d788bbe54f1f48 /src
parente4414471dd10c3afebc49f3cc7c51f76852b08e0 (diff)
downloadopenttd-7bdde8b41d348b0df9e3d29c511cb1181823ebc6.tar.xz
Fix: Use natural sort when sorting the file list.
Diffstat (limited to 'src')
-rw-r--r--src/fios.cpp2
1 files changed, 1 insertions, 1 deletions
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;