code: def compareValues(self, a, b):
          
          values = self.values()
          try:
              return cmp(values.index(a), values.index(b))
          except ValueError:
              return cmp(a, b)
docs: Compares two values based on their values for this axis.
          
          :param      a | <variant>
                      b | <variant>