Merge pull request #43050 from Pleto/enhance_tileset_sorting

Enhancement for tileset sorting
This commit is contained in:
Rémi Verschelde 2020-10-26 08:10:53 +01:00 committed by GitHub
commit 33ff670d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -413,7 +413,9 @@ struct _PaletteEntry {
String name;
bool operator<(const _PaletteEntry &p_rhs) const {
return name < p_rhs.name;
// Natural no case comparison will compare strings based on CharType
// order (except digits) and on numbers that start on the same position.
return name.naturalnocasecmp_to(p_rhs.name) < 0;
}
};
} // namespace