WORDS-8 fixed bug with not valid sorting