changes.mady.by.user Robert Reiner
Saved on 29. Apr 2017
Saved on 26. Jul 2017
The comma-separated list of document property names to use for sorting.
Add a '+' (default) for ascending, a '-' for descending order.
+
-
Since version 2.0 the following directives are available to control the sort order. Directives cannot be used together with other sorting strategies.
A breadth first sort of a page tree.
Note that all documents in the result set must have a common ancestor.
#BREADTH_FIRST
A depth first sort of a page tree.
#DEPTH_FIRST
There are three different implementations to choose from. Per default the Memory Implementation is used.
#BREADTH_FIRST:no-mem
#DEPTH_FIRST:no-mem
The sorter uses additional memory to store intermediate results for reuse. This speeds up the sorting process for larger result sets.
This is the default implementation.
#BREADTH_FIRST:mem#DEPTH_FIRST:mem#BREADTH_FIRST#DEPTH_FIRST
#BREADTH_FIRST:mem
#DEPTH_FIRST:mem#BREADTH_FIRST
#BREADTH_FIRST:mat:{root page ID}
#DEPTH_FIRST:mat:{root page ID}
The projectdoc Toolbox provides a number of artificial properties, some of which may be helpful for sorting.
Add a type descriptor of the form
@{type/pattern}
The type is mandatory if the additional type descriptor is given. Valid values are
date
number
The pattern is optional to define a parsing pattern for the specified type.
Per default the sort key then the name of the document is used.
The last modification date is the last arbiter if all other properties are equal.
Here are some examples
Name-
Calendar Week@{number}
Date of Birth-@{date}
Date of Birth@{date/dd.MM.yyyy}
...