mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
parent
7ac651763c
commit
30989e35bf
@ -745,7 +745,7 @@ BrowserService::sortEntries(QList<Entry*>& pwEntries, const QString& siteUrlStr,
|
||||
// Sort same priority entries by Title or UserName
|
||||
auto entries = priorities.values(key);
|
||||
std::sort(entries.begin(), entries.end(), [&sortField](Entry* left, Entry* right) {
|
||||
return QString::localeAwareCompare(left->attribute(sortField), right->attribute(sortField));
|
||||
return QString::localeAwareCompare(left->attribute(sortField), right->attribute(sortField)) < 0;
|
||||
});
|
||||
results << entries;
|
||||
if (browserSettings()->bestMatchOnly() && !results.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user