From d59575b85fa7a78efa1c146b211fc2aacfa8fa57 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 10 Sep 2024 02:04:35 +0200 Subject: [PATCH] =?utf8?q?Again=20fix=20broken=20sorter=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- browser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser.py b/browser.py index 65aa290..7201241 100755 --- a/browser.py +++ b/browser.py @@ -288,6 +288,12 @@ class MainWindow(Gtk.Window): return +1 # apply self.sort_order within DirItems and FileItems (separately) for key in self.sort_order: + a_cmp = None + b_cmp = None + if hasattr(a, key): + a_cmp = getattr(a, key) + if hasattr(b, key): + b_cmp = getattr(b, key) if a_cmp is None and b_cmp is None: continue if a_cmp is None: -- 2.30.2