1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

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

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