HomePhabricator

[Cashtab] Sort OrderBook by price and then min buy amounts

Description

[Cashtab] Sort OrderBook by price and then min buy amounts

Summary:
Some listings e.g. XECX have different listings at the same price. In this case, the sort is random.

Apply a second dimension sort of the min buy amount to distinguish between these listings.

Test Plan:
npm test, I did not add a specific test for this sort bc it is basically a JS primitive, can visit test site and see XECX listing page

deployed here

https://cashtab-local-dev.netlify.app/#/token/c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D17419

Details

Provenance
bytesofmanAuthored on Sun, Dec 29, 15:52
bytesofmanPushed on Sun, Dec 29, 19:27
Reviewer
Restricted Project
Differential Revision
D17419: [Cashtab] Sort OrderBook by price and then min buy amounts
Parents
rABC404c3b7e29c7: [e.cash] Add ecashstaking.com to staking links
Branches
Unknown
Tags
Unknown