only sort by frequency