Given a list of words, group the ones that are anagrams of each other.
Input: one line of space-separated words.
Output: one group per line. Within a group, list words sorted alphabetically and join them with a comma (no spaces). Order the groups by their sorted signature (i.e. the sorted letters of the words in that group) ascending.