Sorting encounters and displaying names of locations and providers in
autocomplete widgets