Compares lhs to rhs, returning a negative number if lhs is less than rhs, zero if they are equal, or a positive number if lhs is greater than rhs.