Fix autocomplete sort