[PATCH 4/4] Sort categories in GUI alphabetically

Martin Sivak msivak at redhat.com
Tue Dec 18 13:37:49 UTC 2012


---
 pyanaconda/ui/gui/hubs/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/hubs/__init__.py b/pyanaconda/ui/gui/hubs/__init__.py
index 592e812..3975b37 100644
--- a/pyanaconda/ui/gui/hubs/__init__.py
+++ b/pyanaconda/ui/gui/hubs/__init__.py
@@ -142,7 +142,7 @@ class Hub(GUIObject, common.Hub):
         
         box = Gtk.VBox(False, 6)
 
-        for c in categories:
+        for c in sorted(categories, key=lambda c: c.title):
             obj = c()
 
             selectors = []
-- 
1.7.11.7



More information about the anaconda-patches mailing list