diff --git a/src/HomePage/CoinTable.js b/src/HomePage/CoinTable.js index a9f2cfd..4b059fe 100644 --- a/src/HomePage/CoinTable.js +++ b/src/HomePage/CoinTable.js @@ -19,6 +19,14 @@ const styles = theme => ({ function CoinTable(props) { const { classes, crypto } = props; + crypto.coins.sort((l, r) => { + return ( + l.total_price === r.total_price + ? 0 + : (l.total_price < r.total_price ? 1 : -1) + ) + }) + return (