One button, two actions

My app is displaying a repeating group with names and numbers. By default the list is sorted by name. I want to make one button to sort the list by number and by clicking the same button I want to go back to the sorted by name list. How can I do this? Thanks for helping me out.

I would set different states for the button. And then in your workflow editor, say “If state is…then do this.” and vice versa. Maybe there’s an easier way, but that’s how I do it. Hope that helps.

2 Likes

Thanks for your reply. I will give it a try.