From: Christian Heller Date: Tue, 10 Sep 2024 00:04:35 +0000 (+0200) Subject: Again fix broken sorter … X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/condition?a=commitdiff_plain;h=d59575b85fa7a78efa1c146b211fc2aacfa8fa57;p=stable_plom Again fix broken sorter … --- 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: