Order by in a UIB list component

Steph_Fagnant
Tera Contributor

I have a list component in UIB with a filter and I'm trying to figure out how to do an orderby on multiple columns. My filter criteria is bound to a client state parameter that's being dynamically created in a client script. The filter works fine for bringing back the desired data, but I haven't been able to figure out how to order the data. Including '^ORDERBY<fieldname>' in the script did not work. I've confirmed that the user does not have any sort preference already stored for that table, either.

 

Any ideas would be much appreciated.

1 ACCEPTED SOLUTION

HidekiOgawa
Tera Guru

I set the following client status parameter in the filter and confirmed that it worked:
category=software^ORDERBYpriority^ORDERBYstate

スクリーンショット 2025-06-14 1.20.06.pngスクリーンショット 2025-06-14 1.22.10.png

View solution in original post

2 REPLIES 2

HidekiOgawa
Tera Guru

I set the following client status parameter in the filter and confirmed that it worked:
category=software^ORDERBYpriority^ORDERBYstate

スクリーンショット 2025-06-14 1.20.06.pngスクリーンショット 2025-06-14 1.22.10.png

Steph_Fagnant
Tera Contributor

Thanks! I'm still relatively new to SN and hadn't thought to try the filter criteria. My query is being sent in a URL parm, but creating a client state param with my various sorting and then binding that to the default filter field worked!