Sorts task entries in order by a specified field. Useful for generating RSS in particular order. By default the sort will be in ascending (lowest first) order.
|field||The field by which to sort the entries. Default: title. Required if you are utilizing either of the other two options.|
|reverse||If set to
|ignore_articles||If set to
These entries will be used for the following examples.
His Entry The Cats Entry My Entry
His Entry My Entry The Cats Entry
sort_by: field: title reverse: yes
The Cats Entry My Entry His Entry
sort_by: field: title ignore_articles: yes
The Cats Entry His Entry My Entry
sort_by: field: title ignore_articles: '^(his|my)\s'
# note that 'His Entry' and 'My Entry' will be considered identical for the sort (since 'His' and 'My' will be ignored) and may be reversed, but will always be before 'The Cats Entry' My Entry His Entry The Cats Entry
The field specification is a jinja expression for more advanced sorting.
sort_by: - field: quality.resolution reverse: yes - title|lower
Secondary (and further) search fields can be specified by providing the config in a list format.
sort_by: - field: field1 reverse: yes - field2