diff --git a/CHANGES.rst b/CHANGES.rst index 5dbf63f..d75f727 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,7 +7,8 @@ Changelog - Add Plone Site Setup: Overview permission to ElevateManager to be able to access elevate controlpanel. [cekk] - +- Sort solr keywords vocabulary in alphabetical order. + [cekk] 1.5.4 (2024-12-06) ------------------ diff --git a/src/rer/solrpush/vocabularies.py b/src/rer/solrpush/vocabularies.py index 92170c8..f1d415a 100644 --- a/src/rer/solrpush/vocabularies.py +++ b/src/rer/solrpush/vocabularies.py @@ -36,7 +36,7 @@ def get_terms(self): terms.append( SimpleTerm(value=key, token=key.encode("utf-8"), title=key) ) - return terms + return sorted(terms, key=lambda x: x.title.lower()) def __call__(self, context): return SimpleVocabulary(self.get_terms(), swallow_duplicates=True)