I want to compare tuples a = (a1, a2, a3) and b = (b1, b2, b3) and use following result:
- -1 in the case of a < b
- 0 in the case of a == b
- 1 in the case of a > b
Is there builtin function which allows to do this?
I want to compare tuples a = (a1, a2, a3) and b = (b1, b2, b3) and use following result:
Is there builtin function which allows to do this?