Memo sorting fix (#1354)

This commit is contained in:
niyid 2024-11-01 11:14:30 +01:00 committed by GitHub
parent c855d66a0c
commit 485746381c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,8 +162,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
transactionColumn.setComparator(Comparator.comparing(TransactionsListItem::getTxId));
amountColumn.setComparator(Comparator.comparing(TransactionsListItem::getAmount));
confidenceColumn.setComparator(Comparator.comparingLong(TransactionsListItem::getNumConfirmations));
memoColumn.setComparator(Comparator.comparing(TransactionsListItem::getMemo));
memoColumn.setComparator(Comparator.comparing(TransactionsListItem::getMemo, Comparator.nullsLast(Comparator.naturalOrder())));
dateColumn.setSortType(TableColumn.SortType.DESCENDING);
tableView.getSortOrder().add(dateColumn);