diff --git a/src/helpers/buildWalletSections.tsx b/src/helpers/buildWalletSections.tsx index 1e05de4fb9e..4484aa33fd3 100644 --- a/src/helpers/buildWalletSections.tsx +++ b/src/helpers/buildWalletSections.tsx @@ -88,7 +88,7 @@ const withPositionsSection = () => { const result: PositionExtraData[] = []; const sortedPositions = positionsObj?.positions?.sort((a, b) => - a.dapp.name.localeCompare(b.dapp.name) + a.totals.totals.amount > b.totals.totals.amount ? -1 : 1 ); sortedPositions?.forEach((position, index) => { const listData = {