WORDS-8

add sorting functionality