better wallet order

This commit is contained in:
Matias Alejo Garcia 2016-08-25 18:13:20 -03:00
commit db9750b263
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
5 changed files with 7 additions and 6 deletions

View file

@ -716,9 +716,10 @@ angular.module('copayApp.services')
ret = lodash.filter(ret, function(w) {
return w.isComplete();
});
} else {
}
return lodash.sortBy(ret, 'name');
return lodash.sortBy(ret, [ function(x) { return x.isComplete(); }, 'createdOn', 'name']);
};
return root;