From 6e20bf7013a0f77020a56b249585d73175a816b3 Mon Sep 17 00:00:00 2001 From: Houssam Salem Date: Tue, 11 Nov 2014 10:13:29 +1100 Subject: [PATCH] Load saved searches list in sorted order --- aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index 98464181a..0fa01c909 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -821,7 +821,7 @@ by clicking on one on the left.""")) root = self.CallbackItem(root, _("My Searches"), None) root.setExpanded(True) root.setIcon(0, QIcon(":/icons/emblem-favorite-dark.png")) - for name, filt in saved.items(): + for name, filt in sorted(saved.items()): item = self.CallbackItem(root, name, lambda s=filt: self.setFilter(s)) item.setIcon(0, QIcon(":/icons/emblem-favorite-dark.png"))