From 1caa2312c8f566cebb4e980aa6e837eaaa91a849 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 7 Dec 2016 23:03:29 -0500 Subject: [PATCH] sort function adjustment --- src/popup/app/vault/vaultViewFolderController.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/popup/app/vault/vaultViewFolderController.js b/src/popup/app/vault/vaultViewFolderController.js index ef7430ba45..f03a223120 100644 --- a/src/popup/app/vault/vaultViewFolderController.js +++ b/src/popup/app/vault/vaultViewFolderController.js @@ -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; }