
TuplesSearch.orderBy( sortKey as string, direction as string ) as TuplesSearch
Specifies the sort method for the tuples.
const jsearch = require('/MarkLogic/jsearch.sjs');
jsearch.tuples(['author', 'format'])
.orderBy('item','descending');
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.