Sorting by trade ID desc

This commit is contained in:
Matias committed 2019-04-01 11:07:43 +02:00
1 parent 2b5e15afda
commit 3028a898a1
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@
}
trades.push(trade);
}
trades.sort((a, b) => b.tradeID - a.tradeID);
callBack(global.DEFAULT_OK_RESPONSE.result, trades);
} catch (error) {
callBack(global.DEFAULT_FAIL_RESPONSE.result);