TuplesSearch.orderBy(
sortKey as string,
direction as string
) as TuplesSearch
Summary
Specifies the sort method for the tuples.
Parameters
sortKey
Specifies whether to sort on the "item" (that is, the value
of each index) or on the "frequency" (that is, the number
of occurrences of the combination of values). When sorting
on item, the indexes constituting the tuple are sorted in
left-to-right order.
direction
Specifies whether to sort in "ascending" or "descending" order.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.