mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #67047 from KoBeWi/_aacdeelmmnoptt
Sort unused palette commands alphabetically
This commit is contained in:
commit
18177828ad
@ -66,7 +66,11 @@ class EditorCommandPalette : public ConfirmationDialog {
|
||||
|
||||
struct CommandHistoryComparator {
|
||||
_FORCE_INLINE_ bool operator()(const CommandEntry &A, const CommandEntry &B) const {
|
||||
return A.last_used > B.last_used;
|
||||
if (A.last_used == B.last_used) {
|
||||
return A.display_name < B.display_name;
|
||||
} else {
|
||||
return A.last_used > B.last_used;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user