code: def compare_3PC_keys(key1, key2) -> int:
      
      if key1[0] == key2[0]:
          return key2[1] - key1[1]
      else:
          return key2[0] - key1[0]
docs: Return >0 if key2 is greater than key1, <0 if lesser, 0 otherwise