SortByFrequency is added with comments