WorldQuant Interview Question

Given an array of strings, sort the array based on the frequency of anagrams.