(observations)
return sorted(observations, key=cmp_to_key(cmp_observation), reverse=True)
Method to sort observations to make sure that the "winner" is at index 0
Method to sort observations to make sure that the "winner" is at index 0
Method to sort observations to make sure that the winner is at index 0
def sort_observations(observations):
    """
    Method to sort observations to make sure that the "winner" is at index 0
    """
    return sorted(observations, key=cmp_to_key(cmp_observation), reverse=True)
def sort_observations ( observations ) : return sorted ( observations , key = cmp_to_key ( cmp_observation ) , reverse = True )