Improved keyword suggestion to sort keywords with selected history.