sort anagrams next to eachother