XQuery order by ascending and descending
Yes, you can use ascending
(default) or descending
at the end of the order by..
expression.
Here's the link to the relevant part of the W3C XQuery spec:
See my answer to this question. The code demonstrates ordering in descending order.
For ordering in ascending order, the ascending
keyword can be ommitted.