Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more 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

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

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


Regards
Harish

Harish KM
Kilo Patron

Another way would be try adding orderBy to your widget layout



Capture2.JPG


Regards
Harish