Any workaround how to click on buttons on action sheet in iOS in java

please help me out… there Is a app am testing on iOS …it has an action sheet table in table where I have to click on sort button then I get 3 option sort by1 or sort by 2 or sort by 3… I can find the elements but not able to click or tap on that action sheet buttons…please help me

Any luck to solve this issue? I am also stuck with this issue as well. In my case, I always get to select bottom button. Switching button will work, but it is not the ideal solution.