Commit 98914b8b authored by mathieui's avatar mathieui

Fix a traceback when sorting a listwin

parent 1bd9f78f
......@@ -2324,9 +2324,10 @@ class ListWin(Win):
if not col_name:
return
elif asc:
self.lines.sort(key=lambda x: x[col_name])
self.lines.sort(key=lambda x: x[self._columns[col_name]])
else:
self.lines.sort(key=lambda x: x[col_name], reverse=True)
self.lines.sort(key=lambda x: x[self._columns[col_name]],
reverse=True)
self.refresh()
curses.doupdate()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment