anagrams together via modifying sort