Anagram canonising