Commit 36ce7ef1 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Make the input for the printer deterministic by sorting it

Otherwise it's hard to test the output when the order differs on every
execution.
parent b3d43d19
......@@ -142,6 +142,7 @@ class DepCommand(Command):
todos = set([self.todolist.todo(arg)])
todos |= set(self.todolist.children(todo))
todos |= set(self.todolist.parents(todo))
todos = sorted(todos, key=lambda t: t.text())
self.out(self.printer.print_list(todos))
except InvalidTodoException:
......
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