1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-07-05 12:04:45 +02:00

sort function adjustment

This commit is contained in:
Kyle Spearrin 2016-12-07 23:03:29 -05:00
parent f1c9075768
commit 1caa2312c8

View File

@ -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;
}