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.

how to add Sorting in the Related list in table

servicenow lath
Tera Contributor

I want to change the default sort order of a related list for all users from 'Number' to "updated".

how  can we do this? suggest me with your ideas

1 REPLY 1

Community Alums
Not applicable

HI @servicenow lath ,

  1. Navigate to the related list (example, Incidents on a problem record).
  2. Create the desired filter using the condition builder (example, [Active] [is] [true]).
     
  3. Click Set as Default Filter.

You shouldn't need to use a script as you can control the default sort order for a list through the ui. The user will be able to override it with their own preference, though.