How to add Sort for the List view of Records from Z to A

RathanK
Kilo Guru

Hello People,

Hope everyone is doing great.

 

I need to configure the list view of records from Z to A, so whenever someone opens the list view, the newly created record should be on the top and the numbering should be from descending to ascending.

PFA the screenshot.

RathanK_0-1752644630907.png

 

If you found my response helpful, please give it a thumbs-up and designate it as solution accepted to support fellow developers and admins.


Regards,
Rathan K
1 ACCEPTED SOLUTION

Shraddha Kadam
Giga Sage

Hello @RathanK ,

 

Create a record in the sys_user_preference table as per below screenshot. I just wanted to let you know that this has worked for me.

ShraddhaKadam_0-1752645847808.png

Note - Before creating a new record, verify if one already exists. If so, delete the existing record(s) and then proceed with creating the new one. Remember to log out and log back in before testing.

 

If my response was helpful, please mark it as correct and helpful.
Thank you.

View solution in original post

11 REPLIES 11

Utpal Dutta
Tera Guru

Hey Rathan,

You can edit the module URL with something like "/u_issue_tracking_list.do?sysparm_query=u_statusNOT%20INCanceled%2CResolved^ORDERBYDESCu_tsf&sysparm_view=IssueDisplay"

 

UtpalDutta_0-1752645435352.png

 

In above url order by is defined. This will order your list.

 

I hope my answer helps, if it does please mark it helpful and accept the solution.

 

Thanks

 

Amit Pandey
Mega Sage

The default sort order is stored as a user preference. You can override the default sort order by creating a record in the sys_user_preference table with the following values:

Description: Knowledge Result Sort Widget default sort order
Name: knowledge.portal_search.sort.field
System: True
User:  <Keep  Empty>
Type: string
Value:  sys_updated_on:desc

The Value field will hold the desired default sort order. In the above example it will sort on newest. Please be aware that the moment a user sorts on something else that user will keep that as their default as it gets stored as their user preference which overrides the system one.
Also the order of the sort fields and the sort field labels doesn't determine what default sort order is being used. For example if you only add the above user preference then the default sort will be on the second field.

G Ponsekar
Tera Guru

Hi @RathanK ,

 

check this SN doc 

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP