edits autocomplete add sorting