From 8d28f8f0a9bd5ad15025b742dee6a87c5b9264b5 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 29 Apr 2022 15:38:10 +0200 Subject: [PATCH] reverse sort order of date column in utxos tab --- .../java/com/sparrowwallet/sparrow/control/UtxosTreeTable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/UtxosTreeTable.java b/src/main/java/com/sparrowwallet/sparrow/control/UtxosTreeTable.java index 3b802c6e..b4007216 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/UtxosTreeTable.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/UtxosTreeTable.java @@ -24,6 +24,7 @@ public class UtxosTreeTable extends CoinTreeTable { }); dateCol.setCellFactory(p -> new DateCell()); dateCol.setSortable(true); + dateCol.setComparator((o1, o2) -> (int) (o2.getValue() - o1.getValue())); getColumns().add(dateCol); TreeTableColumn outputCol = new TreeTableColumn<>("Output");