diff --git a/src/myimport.py b/src/myimport.py index f5c1107f..8355b79b 100644 --- a/src/myimport.py +++ b/src/myimport.py @@ -888,7 +888,7 @@ def __init__(self, parent, indents): wx.Dialog.__init__(self, parent, -1, "Adjust styles", style = wx.DEFAULT_DIALOG_STYLE) - indents.sort(lambda i1, i2: -util.cmpfunc(len(i1.lines), len(i2.lines))) + indents.sort(key=lambda indent: indent.lines) vsizer = wx.BoxSizer(wx.VERTICAL)