@staticmethod
def sort_votes(votes):
    """ Sorts the votes in decreasing order and returns the result.

        Usually you don't have to sort the elements by yourself, the __init__
        method will take care of this. But if the elements are already sorted
        from for example a database there is no need to sort them again.

        Args:
            votes (list of MedianVote): The votes to sort.

        Returns:
            list of MedianVote: The sorted votes.
        """
    return sorted(votes, key=lambda vote: vote.value, reverse=True)
