(svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU.

This commit is contained in:
terkhen
2010-11-27 22:52:12 +00:00
parent 4b944cb13e
commit 75f86a7a21
10 changed files with 12 additions and 12 deletions

View File

@@ -279,7 +279,7 @@ protected:
/** Sort servers by name. */
static int CDECL NGameNameSorter(NetworkGameList * const *a, NetworkGameList * const *b)
{
return strcasecmp((*a)->info.server_name, (*b)->info.server_name);
return strnatcmp((*a)->info.server_name, (*b)->info.server_name); // Sort by name (natural sorting).
}
/**