def __lt__(self, other):
    if super().__lt__(other):
        return True
    if super().__eq__(other):
        return ((self.commit_distance or 0) < (other.commit_distance or 0))
    return False
def __lt__(self, other):
    if super().__lt__(other):
        return True
    if super().__eq__(other):
        return ((self.commit_distance or 0) < (other.commit_distance or 0))
    return False