def validate_list_of_numbers_from_csv(data):
    """
    Converts a comma separated string of numeric values to a list of sorted unique integers.
    The values that do not match are skipped.

    :param (str, iterable) data:    - str | iterable
    :return:        - list(int)
    """

    if isinstance(data, str):
        return [int(x.strip()) for x in data.split(',') if x.strip().isnumeric()]
    if isinstance(data, (int, float)):
        return [data]
    result = []
    try:
        for x in data:
            if isinstance(x, (int, float)):
                result.append(int(x))
            elif isinstance(x, str) and x.strip().isnumeric():
                result.append(int(x.strip()))
    except TypeError:
        pass
    return result