From 462d782a62dfa739a25aede48fc07527266687b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 20 Nov 2011 21:07:28 +0100 Subject: [PATCH] sort topics --- tabellio/searchform/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py index 53e136c..29b7066 100644 --- a/tabellio/searchform/form.py +++ b/tabellio/searchform/form.py @@ -259,7 +259,7 @@ def possible_topics(context): catalog = getToolByName(context, 'portal_catalog') topics = tabellio.config.utils.get_topics_dict() terms = [] - for key, value in topics.items(): + for key, value in sorted(topics.items()): topic_id = key topic_str = value[0] terms.append(SimpleVocabulary.createTerm(topic_id, topic_id, topic_str))