Restore sort order fix

This commit is contained in:
Dan Finlay 2017-07-24 17:27:27 -07:00
parent a22adec66f
commit 7a04643d8e
2 changed files with 5 additions and 2 deletions

View File

@ -125,7 +125,7 @@ App.prototype.renderAppBar = function () {
h('div', {
style: {
width: '100%'
width: '100%',
},
}, [

View File

@ -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
}