I have a list like this:
name1: group1
name2: group4
name3: group1 group2
name4: group4
..........
..........
I wish to invert this list, and make it look like:
group1: name1 name3...
group2: name3
group4: name2, name4
...........
...........
Can somebody offer at least a psuedo code?
Thanks