From 857011677d831f42dba5546794b48ebd39e53be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 14 Mar 2014 18:34:59 +0100 Subject: [PATCH] order keywords alphabetically (#4478) --- src/collective/dms/thesaurus/keywordsfield.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collective/dms/thesaurus/keywordsfield.py b/src/collective/dms/thesaurus/keywordsfield.py index fafd684..dd8cd93 100644 --- a/src/collective/dms/thesaurus/keywordsfield.py +++ b/src/collective/dms/thesaurus/keywordsfield.py @@ -78,7 +78,7 @@ class ThesaurusKeywordsWidget(SequenceWidget): thesaurus_path = '/'.join(thesaurus.getPhysicalPath()) value = [] - for token in self.value: + for token in sorted(self.value): # Ignore no value entries. They are in the request only. if token == self.noValueToken: continue