code: def CompareTo(self, other_hash_value):
          
          if len(self.hash_value) != len(other_hash_value):
              raise ValueError("Length of hashes doesn't match.")
  
          # The hash byte array that is returned from ComputeHash method has the MSB at the end of the array
          # so comparing the bytes from the end for compare operations.
          for i in xrange(0, len(self.hash_value)):
              if(self.hash_value[len(self.hash_value) - i - 1] < other_hash_value[len(self.hash_value) - i - 1]):
                  return -1
              elif self.hash_value[len(self.hash_value) - i - 1] > other_hash_value[len(self.hash_value) - i - 1]:
                  return 1
          return 0
docs: Compares the passed hash value with the hash value of this object