sort autocomplete result list to group result types together