mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
fix date sort on utxos table
This commit is contained in:
parent
db60afd13b
commit
f4259642b8
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import com.sparrowwallet.drongo.wallet.WalletNode;
|
||||||
import com.sparrowwallet.sparrow.wallet.*;
|
import com.sparrowwallet.sparrow.wallet.*;
|
||||||
import javafx.beans.property.ReadOnlyObjectWrapper;
|
import javafx.beans.property.ReadOnlyObjectWrapper;
|
||||||
import javafx.scene.control.SelectionMode;
|
import javafx.scene.control.SelectionMode;
|
||||||
|
import javafx.scene.control.TableColumnBase;
|
||||||
import javafx.scene.control.TreeTableColumn;
|
import javafx.scene.control.TreeTableColumn;
|
||||||
import javafx.scene.control.TreeTableView;
|
import javafx.scene.control.TreeTableView;
|
||||||
|
|
||||||
|
@ -24,7 +25,7 @@ public class UtxosTreeTable extends CoinTreeTable {
|
||||||
});
|
});
|
||||||
dateCol.setCellFactory(p -> new DateCell());
|
dateCol.setCellFactory(p -> new DateCell());
|
||||||
dateCol.setSortable(true);
|
dateCol.setSortable(true);
|
||||||
dateCol.setComparator((o1, o2) -> (int) (o2.getValue() - o1.getValue()));
|
dateCol.setComparator(TableColumnBase.DEFAULT_COMPARATOR.reversed());
|
||||||
getColumns().add(dateCol);
|
getColumns().add(dateCol);
|
||||||
|
|
||||||
TreeTableColumn<Entry, Entry> outputCol = new TreeTableColumn<>("Output");
|
TreeTableColumn<Entry, Entry> outputCol = new TreeTableColumn<>("Output");
|
||||||
|
|
Loading…
Reference in a new issue