We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ecbc4 commit 105cc4fCopy full SHA for 105cc4f
1 file changed
odml/base.py
@@ -158,6 +158,13 @@ def append(self, *obj_tuple):
158
159
super(SmartList, self).append(obj)
160
161
+ def sort(self, key=lambda x: x.name, reverse=False):
162
+ """
163
+ If not otherwise defined, sort by the *name* attribute
164
+ of the lists *_content_type* object.
165
166
+ super(SmartList, self).sort(key=key, reverse=reverse)
167
+
168
169
@allow_inherit_docstring
170
class Sectionable(BaseObject):
0 commit comments