SortByCharacteristics

Define the order in which objects are to be sorted.


Syntax

SortByCharacteristics

graphics/SortByCharacteristics.jpg

Description

In Tamino, you can use SortByClause for sorting database objects. The SortByCharacteristics defines the order in which database objects should be sorted, which can be ascending (using ascending or asc as shorthand) or descending (using descending or desc as shorthand). The default sorting order is ascending. See SortByClause for a more detailed description of how sorting works.

Compatibility

There is no SortByCharacteristics in XPath.

Example

Select all patients sorted by their submission date beginning with the most current one; patients who were submitted on the same day, should be sorted alphabetically by their name:

/patient sortall (submitted/date desc, name asc)

Related Expressions

SortByClause