Takes a sequence as its input and produces a sorted sequence as its output.
Content: ( xsl:sort+ , sequence-constructor )
Permitted parent elements: any XSLT element whose content model is sequence-constructor; any literal result element
The input sequence may be defined either by
an expression within the optional
Available in XSLT 2.0 and later versions. Available in all Saxon editions. Available for all platforms.
The sort criteria are specified using xsl:sort elements as children of
xsl:perform-sort, in the
It's often useful to use
xsl:perform-sort inside a stylesheet
function; the function can return the sorted sequence as its result, and can be
invoked directly from an XPath expression.