Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
1c54ac7b
Commit
1c54ac7b
authored
Oct 12, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort lists without case sensitivity.
parent
4af555e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ListContextCommand.py
ListContextCommand.py
+1
-1
ListProjectCommand.py
ListProjectCommand.py
+1
-1
No files found.
ListContextCommand.py
View file @
1c54ac7b
...
@@ -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
)
ListProjectCommand.py
View file @
1c54ac7b
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment