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/newgrf_config.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/newgrf_config.cpp')
-rw-r--r-- | src/newgrf_config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 18f47b64a..bd95373d9 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -715,7 +715,7 @@ static int CDECL GRFSorter(GRFConfig * const *p1, GRFConfig * const *p2) const GRFConfig *c1 = *p1; const GRFConfig *c2 = *p2; - return strcasecmp(c1->GetName(), c2->GetName()); + return strnatcmp(c1->GetName(), c2->GetName()); } /** |