Sort an array of strings so that the anagrams are grouped