(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 5139fa9a23
commit 64c200a25e
10 changed files with 12 additions and 12 deletions

View File

@@ -160,7 +160,7 @@ private:
GetString(last_name[1], STR_GROUP_NAME, lastof(last_name[1]));
}
int r = strcmp(last_name[0], last_name[1]); // sort by name
int r = strnatcmp(last_name[0], last_name[1]); // Sort by name (natural sorting).
if (r == 0) return (*a)->index - (*b)->index;
return r;
}