In XQuery, how do you order ascending and descending?
I have the following from a tutorial:
for $x in doc("books.xml")/bookstore/book where $x/price>30 order by $x/title return $x/title
would
for $x in doc("books.xml")/bookstore/book where $x/price>30 order by $x/title ascending return $x/title
xml xquery
Tuffy g
source share