From 9f33cecedea959fae3da2b9d9a9f45283476fb21 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 18 Jan 2023 20:12:05 +0100 Subject: [PATCH] qt coins tab: sotz by height --- electrum/gui/qt/utxo_list.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py index 1ffc2bdaa..b9415957c 100644 --- a/electrum/gui/qt/utxo_list.py +++ b/electrum/gui/qt/utxo_list.py @@ -77,6 +77,7 @@ class UTXOList(MyTreeView): def update(self): # not calling maybe_defer_update() as it interferes with coincontrol status bar utxos = self.wallet.get_utxos() + utxos.sort(key=lambda x: x.block_height, reverse=True) self._maybe_reset_coincontrol(utxos) self._utxo_dict = {} self.model().clear()