From b53a254a1cae9b00459fe0819155003706faaf07 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Wed, 23 Feb 2022 20:59:21 +0100 Subject: [PATCH] Changed order for tradeable assets on my account page. --- .../java/nl/andrewl/coyotecredit/service/AccountService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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