NumericalOrder
NumericalOrder[e1,e2] gives 1 if e1<e2, -1 if e1>e2, 0 if e1 and e2 are numerically the same, and orders by type or using canonical order if e1 and e2 are not numerically comparable.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.