
cts:index-order( $index as cts:reference, [$options as xs:string*] ) as cts:order
Creates a index-based ordering clause, for use as an option to
cts:search.
Only one of "ascending" or "descending" may be specified in the options parameter. If neither "ascending" nor "descending" is specified, then the default is "ascending".
cts:index-order(cts:element-reference(xs:QName("TITLE")))
(: returns the following:
cts:index-order(cts:element-reference(fn:QName("","TITLE"),
("type=string","collation=http://marklogic.com/collation/")), "ascending")
:)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.