0

I want to compare tuples a = (a1, a2, a3) and b = (b1, b2, b3) and use following result:

  1. -1 in the case of a < b
  2. 0 in the case of a == b
  3. 1 in the case of a > b

Is there builtin function which allows to do this?

Alex Aparin
  • 4,393
  • 5
  • 25
  • 51

0 Answers0