sort

sort(x)

sort(x, compare)

Try it yourself:

See also:
All functions