Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

SortSpecList

Define ordering expression and sort direction.


Syntax

SortSpecList

graphics/SortSpecList.png

Expr StringLiteral

Top of page

Description

A SortSpecList defines one or more sort criteria along with the direction of ordering, separated by commas. Each SortSpecList consists of an ordering expression that is optionally followed by one of the keywords ascending or descending. If you omit the ordering direction, ascending is taken as default. You can provide optional collation information introduced by the keyword collation and an appropriate string literal. The first SortSpecList acts as the primary sort criterion, further SortSpecLists as secondary criterion etc.

Top of page

Example

See SortExpr for examples.

See also SortExpr for examples.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page