mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
use more obvious way to sort keys
Some bugs in past were related to invalid keys sorting. Automatic keys sorting should prevent such bugs in the future
This commit is contained in:
parent
80d926290c
commit
95ede170d9
@ -174,6 +174,10 @@ QStringList AWKeyOperations::dictKeys() const
|
||||
std::for_each(staticKeys.cbegin(), staticKeys.cend(),
|
||||
[&allKeys](const QString &key) { allKeys.append(key); });
|
||||
|
||||
// sort in valid order
|
||||
allKeys.sort();
|
||||
std::reverse(allKeys.begin(), allKeys.end());
|
||||
|
||||
return allKeys;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user