Order

WMA link


Order[x, y]

returns a number indicating the canonical ordering of x and y. 1 indicates that x is before y, and -1 that y is before x. 0 indicates that there is no specific ordering. Uses the same order as Sort.

MatchQ
OrderedQ