Numeric sort of results from plural expression

(imported topic written by drp91)

I have a general question about manipulating results from a plural expression.

Using a simple example from Relevance Language Reference:

Q: multiplicities of unique values of (1;2;3;3)

A: 1

A: 1

A: 2

…my question is what support is available in the language which can be used to sort results from a plural expression in numeric order?

Thanks…

(imported comment written by jessewk)

Hi drp,

Officially, sorted results are not supported by the relevance language. You are never guaranteed a result order.

Unofficially, the unique values inspector has the side effect of sorting results and can be used to sort your results in ascending order. Technically, you should not rely on this behavior, but in practice it will work unless we changing the algorithm to detect unique values in the future (unlikely).

So:

unique values of (1;4;6;6;7;2;4)

will return:

1;2;4;6;7

Jesse