Sorting a repeating group with a dropdown menu option

I want to sort a repeating group by created dates and number of votes. Is there a way to add logic that when a certain dropdown is selected lets say ‘Created date (newest to oldest)’ I sort the group from the newest to oldest?

Please how do I implement this?

Add conditionals on the RG - one for each option on the dropdown.
On each conditional, set the data source with appropriate filters and sort options.

Thank you

1 Like