Hi Huseyin, PowerApps does not work that way. There is no Sort action or command that you can associate to a button.
This is how it works:
1) The gallery in which the list of your items is shown has an Items property, which determines what it shows
2) Typically this property would be something like SortByColumns(MyDataSource, "NAME", If(SortDescending1, Descending, Ascending)). This means that the items are sorted in alphabetical order if the context variable SortDescending1 is True or sorted in reverse alphabetical order if SortDescending1 is False
3) When you press the original button, all it does is change the value of SortDescending1 from True to False or viceversa, and this is enough for the items to be resorted
Hence if you now want to sort by two columns, you need to clarify how you want it to work and be creative. For example the second button could toggle the value of SortDescending2 (which is what I think you have done already), but that is not enough because you also need to determine which priority to sort the fields, hence I would suggest that the OnSelect property of your two buttons should be:
UpdateContext({SortDescending1: !SortDescending1, SortPriority: "NAME"})UpdateContext({SortDescending2: !SortDescending2, SortPriority: "ATK"})Then you should set the Items property of your gallery to be something like
If(SortPriority="NAME",
SortByColumns(MyDataSource, "NAME", If(SortDescending1, Descending, Ascending)),
If(SortPriority="ATK",
SortByColumns(MyDataSource, "ATK", If(SortDescending2, Descending, Ascending)),
MyDataSource))
Please let me know if still not clear, or if you need help in finding the Items property of the gallery