Skip to content

Commit

Permalink
fix sorting of a list of dicts of meta_types
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Mar 22, 2018
1 parent f3dccfb commit 3fdefc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OFS/ObjectManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __class_init__(self):
mt.append(t)
except Exception:
pass
mt.sort()
mt.sort(key=lambda k: k['name'])
self.meta_types = tuple(mt)

InitializeClass(self)
Expand Down

0 comments on commit 3fdefc2

Please sign in to comment.