←
MatchQ
→
OrderedQ
/
Reference of Built-in Symbols
/
Testing Expressions
/
Expression Tests
/
Order
/
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
.
Order[7, 11]
Order[100, 10]
Order[x, z]
Order[x, x]
←
MatchQ
→
OrderedQ