1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 09:43:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/sort.tid

19 lines
776 B
Plaintext
Raw Normal View History

2014-04-10 18:56:51 +00:00
created: 20140410103123179
modified: 20140410103123179
2014-09-10 22:42:13 +00:00
tags: Filters CommonFilters
2014-04-10 18:56:51 +00:00
title: FilterOperator: sort
2014-09-10 22:42:13 +00:00
caption: sort
2014-04-10 18:56:51 +00:00
type: text/vnd.tiddlywiki
The ''sort'' filter operator sorts the current list case insensitively (upper and lower case letters are considered equivalent), along the field specified in the operand (which defaults to `title`). Preceding the operator with `!` reverses the sort order.
2014-04-10 18:56:51 +00:00
For example:
|!Filter String |!Description |
|`one two three four +[sort[]]` |Returns `four`, `one`, `three`, `two` |
|`one two Three four +[sort[]]` |Returns `four`, `one`, `Three`, `two` |
For an example of use with explicit operands, see [[FilterOperator: limit]].
2014-04-10 18:56:51 +00:00
See also [[FilterOperator: nsort]], [[FilterOperator: sortcs]] and [[FilterOperator: nsortcs]].