'Compares Captions by score.'

def __cmp__(self, other):

    assert isinstance(other, Caption)
    if (self.score == other.score):
        return 0
    elif (self.score < other.score):
        return (-1)
    else:
        return 1
