How to sort Ai search facets in ESC portal

priyasree
Tera Contributor

priyasree_0-1690382243414.png

whenever something is searched using AI Search, I want to sort filter options (country names) in alphabetical order in Employee center portal

3 REPLIES 3

Dan O Connor
ServiceNow Employee
ServiceNow Employee

Hi @priyasree  unfortunately there is not an OOTB option on that widget to sort. You would need to clone the widget, and then add your own code to provide an option to sort.

 

Feels like worth a post on the Idea Hub, as I feel there should be a sorting option here

Hi @Dan O Connor , I tried cloning the widget and adding a sort method, But no changes were seen, I can see the facet data is stored in form of JSON,

priyasree_0-1690549582432.png

 

Any ideas on how to sort facet data alphabetically

 

Thanks,

Priyasree

Hi Priya,

 

Did you get any solution on it?

 

Thanks,

Santoshi parit