def set_to_list(s: set) ->list:
    """
    Convert a set to a list.

    :param s: a set.
    :return: a list. The result is similar to list(s), but if the elements of the set are comparable, they appear in
        ascending order.

    >>> set_to_list({2, 42, 12})
    [2, 12, 42]
    """
    try:
        return sorted(s)
    except TypeError:
        return list(s)
