def custom_field_values_to_string(custom_field_values, queryset=False):
    """
    Args:
        tags: [{"name": "Demo"}, ...] OR
                    [models.Tag] (if queryset=True)
    Returns:
        ['<tag.name', ...]
    """
    if queryset:
        new_custom_field_values = [i.value for i in custom_field_values]
    else:
        new_custom_field_values = [i['value'] for i in custom_field_values]
    return str(sorted(new_custom_field_values))