Merge pull request #64 from AAVikings/master

Sorting by trade ID desc
This commit is contained in:
benme authored and GitHub committed 2019-04-01 11:08:11 +02:00
commit 908166d4ec
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);