From 0df0015755cd4960112b09a77d0fcdd8b004a301 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Thu, 12 Jun 2014 12:49:08 -0300 Subject: [PATCH] Fix transaction sorting comparator --- js/services/controllerUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index 501adbd66..d0ce6bfbf 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -138,7 +138,7 @@ angular.module('copayApp.services') var myCopayerId = w.getMyCopayerId(); var pendingForUs = 0; - var inT = w.getTxProposals().sort(function(t1, t2) { return t1.createdTs < t2.createdTs }); + var inT = w.getTxProposals().sort(function(t1, t2) { return t2.createdTs - t1.createdTs }); var txs = []; inT.forEach(function(i, index){