Skip to content

Commit

Permalink
Enhancement for tileset sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pleto committed Oct 26, 2020
1 parent b67ccf1 commit 0e392bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/plugins/tile_map_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e392bd

Please sign in to comment.