The CreatorCon Call for Content is officially open! Get started here.

How do I reverse sort?

dianeled
Kilo Guru

Hello, I have a script in a Widget instance that displays my open requests on the portal. I want to reverse sort it so the newest Request is at the top, currently the oldest is first. This is the current script.

"order_by": {

"value": "number",

"displayValue:": "number"

},

Thank you! Diane

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
Kilo Patron

Another way would be try adding orderBy to your widget layout



Capture2.JPG


Regards
Harish

View solution in original post

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

I think in server script you can use orderByDesc("field name") so that u get the newest first


Regards
Harish

Harish KM
Kilo Patron
Kilo Patron

Another way would be try adding orderBy to your widget layout



Capture2.JPG


Regards
Harish