def list_to_string(list_of_elements):
    """
    Converts the given list of elements into a canonical string representation for the whole list.
    """
    return '-'.join(map(lambda x: str(x), sorted(list_of_elements)))