From 608999a97a7fa6e1c3f41d2fa65374fcde16600d Mon Sep 17 00:00:00 2001 From: Xavier Cazin Date: Fri, 18 Jul 2014 14:46:31 +0200 Subject: [PATCH] Add information regarding operands for sort* operators --- editions/tw5.com/tiddlers/filters/FilterOperator nsort.tid | 2 +- editions/tw5.com/tiddlers/filters/FilterOperator nsortcs.tid | 2 +- editions/tw5.com/tiddlers/filters/FilterOperator sort.tid | 4 +++- editions/tw5.com/tiddlers/filters/FilterOperator sortcs.tid | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator nsort.tid b/editions/tw5.com/tiddlers/filters/FilterOperator nsort.tid index 7e51d6601..972b382cc 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator nsort.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator nsort.tid @@ -4,7 +4,7 @@ tags: filters title: FilterOperator: nsort type: text/vnd.tiddlywiki -The ''nsort'' filter operator sorts the current list as numeric values. String values are sorted case insensitively (upper and lower case letters are considered equivalent). Preceding the operator with `!` reverses the sort order. +The ''nsort'' filter operator sorts the current list as numeric values, along the field specified in the operand (which defaults to `title`). String values are sorted case insensitively (upper and lower case letters are considered equivalent). Preceding the operator with `!` reverses the sort order. For example: diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator nsortcs.tid b/editions/tw5.com/tiddlers/filters/FilterOperator nsortcs.tid index 5d963bdc2..e31723d78 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator nsortcs.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator nsortcs.tid @@ -4,7 +4,7 @@ tags: filters title: FilterOperator: nsortcs type: text/vnd.tiddlywiki -The ''nsortcs'' filter operator sorts the current list as numeric values. String values are sorted case sensitively (upper and lower case letters are considered different). Preceding the operator with `!` reverses the sort order. +The ''nsortcs'' filter operator sorts the current list as numeric values, along the field specified in the operand (which defaults to `title`). String values are sorted case sensitively (upper and lower case letters are considered different). Preceding the operator with `!` reverses the sort order. For example: diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator sort.tid b/editions/tw5.com/tiddlers/filters/FilterOperator sort.tid index 5d849e4ad..f705e613c 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator sort.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator sort.tid @@ -4,7 +4,7 @@ tags: filters commonfilters title: FilterOperator: sort type: text/vnd.tiddlywiki -The ''sort'' filter operator sorts the current list case insensitively (upper and lower case letters are considered equivalent). Preceding the operator with `!` reverses the sort order. +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. For example: @@ -12,4 +12,6 @@ For example: |`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]]. + See also [[FilterOperator: nsort]], [[FilterOperator: sortcs]] and [[FilterOperator: nsortcs]]. diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator sortcs.tid b/editions/tw5.com/tiddlers/filters/FilterOperator sortcs.tid index 9b9e435ba..6b37d60fc 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator sortcs.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator sortcs.tid @@ -4,7 +4,7 @@ tags: filters title: FilterOperator: sortcs type: text/vnd.tiddlywiki -The ''sortcs'' filter operator sorts the current list case sensitively (upper and lower case letters are considered different). Preceding the operator with `!` reverses the sort order. +The ''sortcs'' filter operator sorts the current list case sensitively (upper and lower case letters are considered different), along the field specified in the operand (which defaults to `title`). Preceding the operator with `!` reverses the sort order. For example: