sort topics

This commit is contained in:
Frédéric Péters 2011-11-20 21:07:28 +01:00
parent a17a43595e
commit 462d782a62
1 changed files with 1 additions and 1 deletions

View File

@ -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))