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