From 75f86a7a21c6c6ea2e5067a5eb9a8690d8584ed1 Mon Sep 17 00:00:00 2001 From: terkhen Date: Sat, 27 Nov 2010 22:52:12 +0000 Subject: (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. --- src/signs_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/signs_gui.cpp') diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 7a6032596..70bb897db 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -92,7 +92,7 @@ struct SignList { GetString(buf_cache, STR_SIGN_NAME, lastof(buf_cache)); } - int r = strcasecmp(buf, buf_cache); + int r = strnatcmp(buf, buf_cache); // Sort by name (natural sorting). return r != 0 ? r : ((*a)->index - (*b)->index); } -- cgit v1.2.3-54-g00ecf