fn:sort-with
Sorts a supplied sequence, according to the order induced by the supplied comparator functions.
sort-with($input as item()*, $comparators as (fn(item(), item()) as xs:integer)+) ➔ item()*
Arguments | ||||
| $input | item()* | The input sequence | |
| $comparators | (fn(item(), item()) as xs:integer)+ | The comparator functions | |
Result | item()* | |||
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 4.0 Functions and Operators
Saxon availability
Available in XPath 4.0, XSLT 4.0, and XQuery 4.0. Requires Saxon-PE or Saxon-EE. Implemented since Saxon 13. Available for all platforms.