Sort unused palette commands alphabetically
This commit is contained in:
parent
1baefceaba
commit
d8663b1a70
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue