From 7a04643d8ea8a47cc159fc69c941e588e8b873cc Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 24 Jul 2017 17:27:27 -0700 Subject: [PATCH] Restore sort order fix --- ui/app/app.js | 2 +- ui/lib/tx-helper.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/app/app.js b/ui/app/app.js index d1a20f079..973cb756c 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -125,7 +125,7 @@ App.prototype.renderAppBar = function () { h('div', { style: { - width: '100%' + width: '100%', }, }, [ diff --git a/ui/lib/tx-helper.js b/ui/lib/tx-helper.js index ec19daf64..5def23e51 100644 --- a/ui/lib/tx-helper.js +++ b/ui/lib/tx-helper.js @@ -12,6 +12,9 @@ module.exports = function (unapprovedTxs, unapprovedMsgs, personalMsgs, network) const personalValues = valuesFor(personalMsgs) log.debug(`tx helper found ${personalValues.length} unsigned personal messages`) allValues = allValues.concat(personalValues) + allValues = allValues.sort((a, b) => { + return a.time > b.time + }) - return allValues.sort(txMeta => txMeta.time) + return allValues }