fix sorting of dispute state column

This commit is contained in:
woodser 2024-12-15 10:39:45 -05:00
parent 19398bb73e
commit 85acb8aeb3

View File

@ -927,6 +927,7 @@ public abstract class DisputeView extends ActivatableView<VBox, Void> implements
buyerOnionAddressColumn.setComparator(Comparator.comparing(this::getBuyerOnionAddressColumnLabel));
sellerOnionAddressColumn.setComparator(Comparator.comparing(this::getSellerOnionAddressColumnLabel));
marketColumn.setComparator((o1, o2) -> CurrencyUtil.getCurrencyPair(o1.getContract().getOfferPayload().getCurrencyCode()).compareTo(o2.getContract().getOfferPayload().getCurrencyCode()));
stateColumn.setComparator(Comparator.comparing(this::getDisputeStateText));
dateColumn.setSortType(TableColumn.SortType.DESCENDING);
tableView.getSortOrder().add(dateColumn);