I have created a data table in canvas app In that I need sort icons for all columns separately. Already I have given some features like filter and search. Below I have attached the code in snapshot for reference. Can anyone help me with this?

I have created a data table in canvas app In that I need sort icons for all columns separately. Already I have given some features like filter and search. Below I have attached the code in snapshot for reference. Can anyone help me with this?
Hi @Roar1 ,
I suggest that you create a collection to hold all the filtered data, so that you can update the data in the collection by changing how the collection is sorted, in the sense that the data in the collection will be updated according to the column you choose to sort.
Please try this:
1)Set the OnChange of each dropdown which you use to filter data:
ClearCollect(mm,Filter(Table1,TextInput3.Text in 'Report Name'......))2)Set the Items of your data table:
mm3)For each icon you use to sort a column:
Set the OnSelect of icon:
ClearCollect(mm,Sort(mm,column1,SortOrder.Ascending))The result of my test:
When I select the icon above "student":
Best regards,
Rimmon Li