mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user