summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-27 22:52:12 +0000
committerterkhen <terkhen@openttd.org>2010-11-27 22:52:12 +0000
commit75f86a7a21c6c6ea2e5067a5eb9a8690d8584ed1 (patch)
tree9795c8c24286ea191df003631d9cc6af4c30e2bd /src/newgrf_gui.cpp
parent4b944cb13e6d75662a9246bf06523a320d814ace (diff)
downloadopenttd-75f86a7a21c6c6ea2e5067a5eb9a8690d8584ed1.tar.xz
(svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 343c30df9..913a8ff29 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -1201,7 +1201,7 @@ private:
/** Sort grfs by name. */
static int CDECL NameSorter(const GRFConfig * const *a, const GRFConfig * const *b)
{
- int i = strcasecmp((*a)->GetName(), (*b)->GetName());
+ int i = strnatcmp((*a)->GetName(), (*b)->GetName()); // Sort by name (natural sorting).
if (i != 0) return i;
i = (*a)->version - (*b)->version;