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