sorting direction

Hi,
I’m porting an application form x-query to Tamino xquery. In some query I use sortby x-query clause. sortby takes 2 args, the second is the direction of sorting (asc or desc).
Now, I need to sort in desc direction with xquery but sort by takes only xPath expression as parameters, how can I specify the sort order in xquery?

Thanks a lot,
Gx

Hi,

The information you seek is in the documentation, see x:\Program Files\Software AG\Tamino\Tamino 4.1.4.1\Documentation\xqueryref\ref-SortSpecList.htm

Hope this helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.

Thanks Stuart,
I’ve read the documentation very quikly and maybe I’ve lost something :slight_smile:
Now it’s clear.

Thanks a lot,
Gx