summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-14 17:34:59 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-03-14 17:34:59 (GMT)
commit857011677d831f42dba5546794b48ebd39e53be5 (patch)
tree39470da013731ad0fdd5af21a314436c57e4ecff
parentf9d61690c6806ccfc35fa402d1c07b4c9f11c6b4 (diff)
downloadcollective.dms.thesaurus-857011677d831f42dba5546794b48ebd39e53be5.zip
collective.dms.thesaurus-857011677d831f42dba5546794b48ebd39e53be5.tar.gz
collective.dms.thesaurus-857011677d831f42dba5546794b48ebd39e53be5.tar.bz2
order keywords alphabetically (#4478)
-rw-r--r--src/collective/dms/thesaurus/keywordsfield.py2
1 files changed, 1 insertions, 1 deletions
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