Commit 1c54ac7b authored by Bram Schoenmakers's avatar Bram Schoenmakers

Sort lists without case sensitivity.

parent 4af555e8
...@@ -8,5 +8,5 @@ class ListContextCommand(Command.Command): ...@@ -8,5 +8,5 @@ class ListContextCommand(Command.Command):
super(ListContextCommand, self).__init__(p_args, p_todolist, p_out, p_err, p_prompt) super(ListContextCommand, self).__init__(p_args, p_todolist, p_out, p_err, p_prompt)
def execute(self): def execute(self):
for context in sorted(self.todolist.contexts()): for context in sorted(self.todolist.contexts(), key=str.lower):
self.out(context) self.out(context)
...@@ -8,5 +8,5 @@ class ListProjectCommand(Command.Command): ...@@ -8,5 +8,5 @@ class ListProjectCommand(Command.Command):
super(ListProjectCommand, self).__init__(p_args, p_todolist, p_out, p_err, p_prompt) super(ListProjectCommand, self).__init__(p_args, p_todolist, p_out, p_err, p_prompt)
def execute(self): def execute(self):
for project in sorted(self.todolist.projects()): for project in sorted(self.todolist.projects(), key=str.lower):
self.out(project) self.out(project)
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