Hi @anut12,
On the OnSelect property of your icon, enter the following for Date:
UpdateContext({AppSortAscending: !AppSortAscending});
UpdateContext({SortColumn: "datecolumn"}) //your logical date column name
On the OnSelect property of another icon, enter the following for Text:
UpdateContext({AppSortAscending: !AppSortAscending});
UpdateContext({SortColumn: "textcolumn"}); //your logical text column name
On the OnSelect property of another icon, enter the following for Number:
UpdateContext({AppSortAscending: !AppSortAscending});
UpdateContext({SortColumn: "numbercolumn"}); //your logical number column name
Now enter the following in the Items property of your Gallery:
Sort(
Filter(
'Requests',
Status = TabsGallery_1.Selected.Value,
Support = Dropdown1.Selected.Value || TicketStatus = Dropdown2.Selected.Value
),
Switch(
SortColumn,
"textcolumn",
'Text Column',
"datecolumn",
'Date Column',
"numbercolumn",
'Number Column',
'Modified On'
),
If(
AppSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
)
------------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution
If you like my response, please give it a Thumbs Up.