Automatically sort list of keywords