Sorting now goes by frequency