(svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU.
This commit is contained in:
@@ -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).
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user