How to specify default sort order for a specific module in Mobile View?

sangeetsnc
Kilo Contributor

I have tried changing query string as follows .
1 - /q:active=true^sysparm_orderby=sys_updated_on^sysparm_order_direction=desc

2 - /q:active=true&sysparm_order=sys_updated_on&sysparm_order_direction=desc

3 - /q:active=true^ORDERBY=sys_updated_on

But this seems to be not working on mobile.

1 ACCEPTED SOLUTION

Andras Kisgyorg
Kilo Guru

HI Sangeet,



Did you try using sysparm_query, specifying the ordering right at the first place:



...&sysparm_query=ORDERBYopened_at... and specifying the rest of the query filters after that.


for descending order:


...&sysparm_query=ORDERBYDESCopened_at...



Regards,


Andras


View solution in original post

6 REPLIES 6

Harish KM
Kilo Patron
Kilo Patron

Andras Kisgyorg
Kilo Guru

HI Sangeet,



Did you try using sysparm_query, specifying the ordering right at the first place:



...&sysparm_query=ORDERBYopened_at... and specifying the rest of the query filters after that.


for descending order:


...&sysparm_query=ORDERBYDESCopened_at...



Regards,


Andras


Hi Andras,



Thanks a lot for your answer!!!


You were quite close to it . But since it is on Mobile UI ^ was used instead of &. Following worked correctly:
q:active=true^sysparm_query=ORDERBYDESCsys_updated_on


amlanpal
Kilo Sage

Hi Sangeet,



Please try with the argument as of below snapshot or try with my answer provided here: Set Default Sort Order for lists in Mobile view .


find_real_file.png


I hope this helps.Please mark correct/helpful based on impact