(ord left right) left: any type right: any type returns a sym
Numeric or lexicographic ordering.
Returns a symbol describing the ordering between its arguments:
<whenleftis less thanright.==whenleftis equal toright.>whenleftis greater thanright.
Integers, floats and characters can all be compared with one another. When comparing
an integer or character to a float, it will first be converted to a float, as though
calling the flo function. When comparing a character to an integer, it will
first be converted to an integer, as though calling the int function.
NaN floats compare greater than any other number, including positive infinity. All NaN floats compare equal to all other NaN floats.
Strings, symbols and characters can all be compared with one another. The ordering is lexicographic. When compared to a string or a symbol, a character acts like a string of length 1.
Finally, arrays can be lexicographically compared to other arrays.
Comparing values of incompatible types (for example, comparing an integer to a class, or comparing an array to a string) is an error.