Sort button (OnSelect):
UpdateContext({sortGrade: !sortGrade})
Items in Gallery:
SortByColumns(Filter(
Search(
Table1,
TextInputSearch_3.Text,
"Name2"
), "Cumulative Grade Point Average (CGPA)/Grade", If(sortGrade, Descending, Ascending))
Instead of it sort to ascending when the sortGrade is false, I want the gallery back to default arrangement, is it possible?