From 91fe9ffae1e6f94fab696e8e04742fe4287f87cc Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Mon, 13 Feb 2017 20:14:02 -0800 Subject: [PATCH] Adding a sorter for timestamps on payments. --- lib/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.js b/lib/api.js index 6032f73..b48f12c 100644 --- a/lib/api.js +++ b/lib/api.js @@ -266,7 +266,7 @@ app.get('/miner/:address/payments', function (req, res) { mixin: txnrow.mixin }); if (array.length === response.length) { - return res.json(response); + return res.json(response.sort(global.support.tsCompare)); } }); });