Removing obsolete entries from autocomplete

Autocomplete options should be sorted by when they’ve been used last time. The older ones should be at the bottom. They will be eventually pushed out of the view.