Create SortByFrequency