mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-06 02:37:21 +03:00
Sort credentials based on name
Use the full name for sorting, including issuer prefixes. Fixes #136
This commit is contained in:
parent
37a187373f
commit
2c6bba3add
@ -370,6 +370,13 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sort credentials based on the
|
||||
// full name, including the issuer prefix
|
||||
result.sort(function (a, b) {
|
||||
return a.name.localeCompare(b.name)
|
||||
})
|
||||
|
||||
// If the search gave some results,
|
||||
// the top credential should be selected.
|
||||
if (result[0] !== null && search.text.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user