def _edit_string_for_tags(tags):
    names = []
    for tag in tags:
        name = tag.name
        if ',' in name or ' ' in name:
            names.append('"%s"' % name)
        else:
            names.append(name)
    return ', '.join(sorted(names))
Given list of ``Tag`` instances, creates a string representation of
dataset/ETHPy150Open alex/django-taggit/taggit/utils.py/_edit_string_for_tags