Anagram invariance