File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/imio/pm/wsclient/browser Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 10
10
from imio .pm .wsclient .config import TAL_EVAL_FIELD_ERROR
11
11
from imio .pm .wsclient .interfaces import IPreferredMeetings
12
12
from imio .pm .wsclient .interfaces import ISendableAnnexesToPM
13
+ from natsort import humansorted
13
14
from plone import api
14
15
from plone .memoize import ram
15
16
from Products .statusmessages .interfaces import IStatusMessage
@@ -225,7 +226,7 @@ def __call__(self, context):
225
226
return SimpleVocabulary ([])
226
227
terms = []
227
228
forcedCategoryExists = not forcedCategory and True or False
228
- for category in categories :
229
+ for category in humansorted ( categories , key = lambda x : getattr ( x , "title" )) :
229
230
if forcedCategory == category ["id" ]:
230
231
forcedCategoryExists = True
231
232
terms .append (SimpleTerm (unicode (category ["id" ]),
You can’t perform that action at this time.
0 commit comments