diff --git a/src/main/java/nl/andrewl/coyotecredit/service/AccountService.java b/src/main/java/nl/andrewl/coyotecredit/service/AccountService.java index 2509c0f..b7d2ada 100644 --- a/src/main/java/nl/andrewl/coyotecredit/service/AccountService.java +++ b/src/main/java/nl/andrewl/coyotecredit/service/AccountService.java @@ -138,7 +138,7 @@ public class AccountService { b.getTradeable().getType().name(), b.getAmount().toPlainString() )) - .sorted(Comparator.comparing(BalanceData::symbol)) + .sorted(Comparator.comparing(BalanceData::amount).thenComparing(BalanceData::symbol)) .toList(), TradeableData.DECIMAL_FORMAT.format(account.getTotalBalance()), transactionData