From b0f8dc03b6746f2af639c62358608f68df4eeeab Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 23 Sep 2024 07:09:14 +0200
Subject: [PATCH] =?utf8?q?browser.py:=20fix=20order=20of=20diversities=20i?=
 =?utf8?q?n=20=E2=80=A6=20of=20=E2=80=A6=20listing.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 browser.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/browser.py b/browser.py
index fe09e71..8c5fa26 100755
--- a/browser.py
+++ b/browser.py
@@ -390,8 +390,8 @@ class Gallery:
     def get_diversities_for(self, sort_attr):
         """Return how many diff. values for sort_attr in (un-)filtered store"""
         diversities = [0, 0]
-        for i, store in enumerate([self.dir_entries,
-                                   self.dir_entries_filtered_sorted]):
+        for i, store in enumerate([self.dir_entries_filtered_sorted,
+                                   self.dir_entries]):
             values = set()
             for item in store:
                 if isinstance(item, ImgItem):
-- 
2.30.2