This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


Order[expr1, expr2]
gives 1 if expr1 is before expr2 in canonical order, and -1 if expr1 is after expr2 in canonical order. It gives 0 if expr1 is identical to expr2.
  • Order uses canonical order as described in the notes for Sort.
Find which tuples are in order:
Order operates structurally, not by numerical value:
New in 1