From 770beb460ad6dab043cef031cd6be09cdee08446 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 3 Nov 2016 11:25:05 +0100 Subject: [PATCH] constants: Change default sort order This will allow the list to keep completed tasks in the order they were completed. --- doc/taskwiki.txt | 6 +++--- taskwiki/constants.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/taskwiki.txt b/doc/taskwiki.txt index c242a2a..91d47b2 100644 --- a/doc/taskwiki.txt +++ b/doc/taskwiki.txt @@ -635,9 +635,9 @@ constructs. *taskwiki_sort_order* The default sort order used to sort the tasks within viewports. Defaults - to 'due+,pri-,project+'. Expects a comma-separated list of attributes, - optionally followed by + or - to denote the increasing or decreasing - order, respectively. + to 'status+,end+,due+,pri-,project+'. Expects a comma-separated list of + attributes, optionally followed by + or - to denote the increasing or + decreasing order, respectively. *taskwiki_sort_orders* The sort order can also be customized per viewport. This configuration diff --git a/taskwiki/constants.py b/taskwiki/constants.py index 09bfb9e..768e205 100644 --- a/taskwiki/constants.py +++ b/taskwiki/constants.py @@ -1,2 +1,2 @@ DEFAULT_VIEWPORT_VIRTUAL_TAGS = ("-DELETED", "-PARENT") -DEFAULT_SORT_ORDER = "due+,pri-,project+" +DEFAULT_SORT_ORDER = "status+,end+,due+,pri-,project+"