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:
Evgenii Alekseev 2016-08-26 23:01:16 +03:00
parent 80d926290c
commit 95ede170d9

View File

@ -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;
}