mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-15 09:17:28 -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
|
// Sort same priority entries by Title or UserName
|
||||||
auto entries = priorities.values(key);
|
auto entries = priorities.values(key);
|
||||||
std::sort(entries.begin(), entries.end(), [&sortField](Entry* left, Entry* right) {
|
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;
|
results << entries;
|
||||||
if (browserSettings()->bestMatchOnly() && !results.isEmpty()) {
|
if (browserSettings()->bestMatchOnly() && !results.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user