-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
plone.app.content/plone/app/content/browser/folderfactories.py
Lines 141 to 145 in 7a1bd2b
| results = [ | |
| (translate(ctype["title"], context=request), ctype) for ctype in results | |
| ] | |
| results.sort() | |
| results = [ctype[-1] for ctype in results] |
If the ctype is a dictionary, then this whole thing is not sortable.
Python 3.8.8 (default, Mar 31 2021, 10:26:24)
[GCC 10.2.0] on linux
@>>> [('a', {'a':1}), ('a', {'a':0})].sort()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: '<' not supported between instances of 'dict' and 'dict'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels