Enhancement for tileset sorting
This commit is contained in:
parent
b67ccf1a6f
commit
0e392bd177
1 changed files with 3 additions and 1 deletions
|
@ -413,7 +413,9 @@ struct _PaletteEntry {
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
bool operator<(const _PaletteEntry &p_rhs) const {
|
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
|
} // namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue