Add ability to sort frequency table.