sort when getting the words
fix no suggestion when pressing space key