Takes a newline separated list of names and alphabetizes them into a list separated by commas and spaces. Adds " (numNames)" at the end of the list where numNames is the number of people in the list. Detects and removes duplicates. Quite narrow, but I made this so I could take attendance faster.
Input:Output:
Duplicates: