compareNatural

compareNatural(x, y)

Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.

Try it yourself:

All functions