Sort*
You can deduplicate and sort a union
, struct
or sequence
with the (prefix) sort ><
operator. Sorting can be useful to increase efficiency (i.e. removing duplicates). Sorted values can also be potentially used internally to speed up indexing and intersection.
To be able to sort values you need to be able to order them. Ordering values of any type is future work. Currently, sort only deduplicates a union of numbers.