Added Sorting by Frequency