@sort(t:tab)
@sort(t:tab, cmp:fct)

The @sort function is an impure overloaded function, with a variable number of arguments (so it cannot be currifyed).

See also @permute


@sort(t:tab)

sorts in-place the elements into ascending order using <.


@sort(t:tab, cmp:fct)

sorts in-place the elements into ascending order.

The elements are compared using the function cmp. This function must accept two elements of the tab as arguments, and returns a value converted to a bool. The value returned indicates whether the element passed as first argument is considered to go before the second.

See also Tab Related Functions @car,    @cdr,    @clear,    @concat,    @cons,    @copy,    @count,    @dim,    @domain,    @drop,    @empty,    @explode,    @find,    @flatten,    @gnuplot,    @insert,    @iota,    @is_list,    @is_prefix,    @is_subsequence,    @is_suffix,    @lace,    @last,    @listify,    @map,    @max_val,    @median,    @member,    @normalize,    @occurs,    @permute,    @push_back,    @push_front,    @range,    @reduce,    @remove,    @remove_duplicate,    @replace,    @resize,    @reverse,    @rotate,    @scan,    @scramble,    @size,    @slice,    @sort,    @sputter,    @stutter,    @tab_history,    @tab_history_date,    @tab_history_rdate,    @take