combining autocomplete with sorting, grouping results for matched and not matched items