WORDS-8 Add functionality to sort results by words or repeat number