Struct todo_lib::tsort::Conf [−][src]
Expand description
Sorting rules. First, the list of todos is sorted by the fields defined
in fields
in order of appearance. Then, if rev
is true
the list is
reversed
Fields
fields: Option<String>
comma separated list of field to sort by. Supported field names:
pri
orprioroty
- sort by priority (without priority are the last ones);due
- sor by due date (todos that do not have due date are at the bottom);thr
- sor by threshold date (todos that do not have threshold date are at the bottom);completed
orfinished
- sort by completion date (incomplete ones are at the bottom);created
orcreate
- sort by creation date;subject
,subj
ortext
- sort by todo’s subjects;done
- order: incomplete, recurrent, and done todos;project
orproj
- sort by project names, if todos have more than one project they are compared in order of appearance and shorter list of projects goes first;context
orctx
- sort by contexts, if todos have more than one context they are compared in order of appearance and shorter list of contexts goes first;
rev: bool
reverse the list after sorting
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Conf
impl UnwindSafe for Conf
Blanket Implementations
Mutably borrows from an owned value. Read more