From 69a12ec5ed911bf4343090db70c04403e4c40f75 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 22 May 2022 16:58:53 +0530 Subject: [PATCH] fixed 'My trades' not appearing chronologically --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 3f2fb1b..b240ba8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1745,7 +1745,7 @@ }) } else { getRef('my_orders__title').textContent = 'My trades' - transactions.reverse().forEach(transaction => { + transactions.sort((a, b) => new Date(b.tx_time).getTime() - new Date(a.tx_time).getTime()).forEach(transaction => { const { asset, quantity, unitValue, tx_time, buyer, seller } = transaction let type, other; if (seller === proxy.userID) {