Ask Search:
Rajiv BRajiv B 

Lookup Search results order by

With below lookup search on case for contact results are Unsorted  for Name filed. 
Is this possible to sort search results based on field specified. 


User-added image

 
Best Answer chosen by Rajiv B
Pruthvi RajPruthvi Raj
@Rajiv: As you have already enabled Enhanced Lookups, While searching in the lookup dialog , just click on the the name header. It will be automatically sorted alphabetically.

All Answers

Girish NallamothuGirish Nallamothu
Hello ,

Enable enhanced lookups so users can sort, filter, and page through their results. Enhanced lookups are available only for specific objects.

From Setup, enter Search Settings in the Quick Find box, then select Search Settings.
In the Lookup Settings area, select the objects for which you want to enable enhanced lookup functionality. If the option to enable enhanced lookup functionality isn’t there, then enhanced lookups aren’t available for the object.
Click Save.
Rajiv BRajiv B
Hi Girish, 
Thanks, 

I have enabled enhanced already.. but you know business users expecting to sort results once they click GO based on Name. 
 
is this something not availbe in SF??
 
Pruthvi RajPruthvi Raj
@Rajiv: That is because, the lookup dialog you are seeing is Standard Lookup. Standard lookups search through a limited set of searchable fields per object and users can’t refine search results.

You need to enable Enhance Lookups as they offer more search capabilities than standard lookups. In addition, enhanced lookups allow search result sorting and filtering.
  • From Setup, enter Search Settings in the Quick Find box, then select Search Settings.
  • In the Lookup Settings area, select the objects for which you want to enable enhanced lookup functionality. If the option to enable enhanced lookup functionality isn’t there, then enhanced lookups aren’t available for the object.
  • Click Save.
After enabling enhanced lookups, specify which fields users can use to filter lookup search results. If you don't specify any fields, your users can't use filters in enhanced lookup dialogs. Fields configured to use enhanced lookups don’t support single character searches (except for searches in Chinese, Japanese, Korean, and Thai) or wildcards at the beginning of search terms.

Source: https://help.salesforce.com/articleView?id=search_enhanced_lookup_enable.htm&type=5
Pruthvi RajPruthvi Raj
@Rajiv: As you have already enabled Enhanced Lookups, While searching in the lookup dialog , just click on the the name header. It will be automatically sorted alphabetically.
This was selected as the best answer
Rajiv BRajiv B
Hi Pruthvi Raj .. Many thanks .. Your answers served my purpose.... but Can't we make this default sorting upon Search - GO for desigred fied. 


 
Rajiv BRajiv B
I mean Desigred Field 
Pruthvi RajPruthvi Raj
@Rajiv: Unfortunately, that feature is nowhere provided by Salesforce. Only in the Lookup dialogs by clicking on the headers we can sort the results.