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?

LmTinyToon
  • 4,205
  • 3
  • 22
  • 46

0 Answers0