Is there a way to sort something that you choose as a filter?

I have 4 different filter choices from the main screen in my app and I wanted to know if there is a sort choice for whichever filter you choose or if you can only use the checkbox button feature?

On a collection component, sort applied to in-app filter? Sort applied to grouping?

If this what you are referring to, these are not available.

1 Like

The only working way would be through query column with an if then else column that show the column value you chose in the sort filter.

By only way, I mean the only way I’m thinking at 10:51 PM :joy:

1 Like

I simply make copies of the same collection and apply a different sort to each one, then I add a sort Choice component that the user taps which writes that value to a User column. Set the visibility of each collection to the User column entry to show/hide the appropriately sorted data.

2 Likes

It’s really not a “clean” way to sort a collection, but I don’t think we have any other options at the moment.

If you’re displaying the data in a table collection, then the user can sort as they wish by clicking the column headers.