diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 381009df7..f3f6daad4 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -856,13 +856,21 @@ angular.module('copayApp.services') root.addLastKnownBalance(x, function() {}); }); - - return lodash.sortBy(ret, [ - + var sortedByCreatedOn = lodash.sortBy(ret, [ function(x) { return x.isComplete(); }, 'createdOn' ]); + + var bchSortedWallets = lodash.filter(sortedByCreatedOn, function(x) { + return x.coin == 'bch'; + }); + + var btcSortedWallets = lodash.filter(sortedByCreatedOn, function(x) { + return x.coin == 'btc'; + }); + + return bchSortedWallets.concat(btcSortedWallets); }; root.toggleHideBalanceFlag = function(walletId, cb) {