extra cred, stripped punctuation and merged 2 for loops to 1
sorted alphabetically and by values