sort function adjustment

This commit is contained in:
Kyle Spearrin 2016-12-07 23:03:29 -05:00
parent f1c9075768
commit 1caa2312c8
1 changed files with 6 additions and 0 deletions

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