Sort documents on the basis of document property using cts:search
问题 I have document properties for each document - <prop:properties xmlns:prop="http://marklogic.com/xdmp/property"> <prop:last-modified>2017-04-12T04:55:57Z</prop:last-modified> </prop:properties> Now I want to sort my search results using prop:last-modified . One way which I got to know is to use a loop. But this loop will have an impact on the performance of the query. Is there any other way to get the search results with-in MarkLogic only? 回答1: cts:search() allows an order-specification as