mirror of
https://github.com/bitwarden/browser
synced 2025-01-18 15:31:15 +01:00
sort function adjustment
This commit is contained in:
parent
f1c9075768
commit
1caa2312c8
@ -43,6 +43,9 @@
|
||||
$scope.loaded = true;
|
||||
$scope.vaultSites = decSites.sort(function (a, b) {
|
||||
if (!a.name) {
|
||||
return -1;
|
||||
}
|
||||
if (!b.name) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -56,6 +59,9 @@
|
||||
}
|
||||
|
||||
if (!a.username) {
|
||||
return -1;
|
||||
}
|
||||
if (!b.username) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user