def rawidf2str(rawidf, order=None):
    """string rep of rawidf"""
    lst = []
    if order:
        keys = order
    else:
        keys = rawidf.keys()
    for key in keys:
        try:
            for vals in rawidf[key]:
                lst.append('{},'.format(key))
                for val in vals[1:]:
                    lst.append('     {},'.format(val))
                lst.pop(-1)
                lst.append('    {};'.format(val))
                lst.append('')
        except KeyError as e:
            continue
    return '\n'.join(lst)
