Skip to content

Commit

Permalink
Memo sorting fix (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
niyid authored Nov 1, 2024
1 parent c855d66 commit 4857463
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ public void initialize() {
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);

Expand Down

0 comments on commit 4857463

Please sign in to comment.