def _violate_ascending(values, ascending):
    """
    Check if values violate ascending restrictions.
    """
    for i in ascending:
        if values[i - 1] > values[i]:
            return True
    return False