Version 9.5 SP1
 —  X-Query Reference Guide  —

SortByCharacteristics

Define the order in which objects are to be sorted.


Syntax

SortByCharacteristics

graphics/SortByCharacteristics.jpg

Top of page

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.

Top of page

Compatibility

There is no SortByCharacteristics in XPath.

Top of page

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)

Top of page

Related Expressions

SortByClause

Top of page