sort the keywords by repetition