Loading TOC...

fn:unordered

fn:unordered(
   $sourceSeq as item()*
) as item()*

Summary

Returns the items of $sourceSeq in an implementation dependent order.

Note:

Query optimizers may be able to do a better job if the order of the output sequence is not specified. For example, when retrieving prices from a purchase order, if an index exists on prices, it may be more efficient to return the prices in index order rather than in document order.

Parameters
sourceSeq The sequence of items.

Example

fn:unordered((1, 3, 2))

=> 1, 3, 2

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.