Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Sort Records alphabetically in service portal widget

june1994
Kilo Explorer

I am using the Simple List widget to show the records of incident table based on a particular condition.But as per my requirement i have to sort those record alphabetically in a-z order.How can I achieve this.

find_real_file.png

3 REPLIES 3

Gaurav Bajaj
Mega Sage

Hi Jhilik,



Try to incorporate |orderBy:orderField in the angular directives where you are iterating the whole data.



Like in below example, the list is ordered by age.



find_real_file.png






https://plnkr.co/edit/?p=preview


Hi,



I got a better way fo doing it. You don't need any code manipulation.


Just go into the widget instance options and add the ORDERBY in the filter.



find_real_file.png


vab_13
ServiceNow Employee
ServiceNow Employee