diff options
author | frosch <frosch@openttd.org> | 2014-11-18 20:12:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-11-18 20:12:42 +0000 |
commit | 861b9bc85e8d6e418ca695d2f3eee74ef9edbcdf (patch) | |
tree | 15d9ebe7c946ac02bc2f2f97a63b126123af5174 /src/strings.cpp | |
parent | c00e48eedb0799edeec6625dc0b6398e1455d0e8 (diff) | |
download | openttd-861b9bc85e8d6e418ca695d2f3eee74ef9edbcdf.tar.xz |
(svn r27063) -Fix [FS#6172]: Some lists did not use natural string sorting.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 90ead8559..8ce2fde07 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1864,7 +1864,7 @@ int CDECL StringIDSorter(const StringID *a, const StringID *b) GetString(stra, *a, lastof(stra)); GetString(strb, *b, lastof(strb)); - return strcmp(stra, strb); + return strnatcmp(stra, strb); } /** |