I have a gallery connected to a SharePoint list. I want to be able to click on column headers (buttons) on the list so that the data in that column will be sorted. This is working fine for Text and Date fields but not Choice. Here is how I am achieving the Text/Date fields
Gallery Items:
SortByColumns(
*...gallery filtering...*
sortCol,
If(
sortOrder,
Ascending,
Descending
)
)
Sort by Title, on button click:
UpdateContext({sortCol:"Title",sortOrder:!sortOrder})I tried adding.Value to the sortCol in the line above but that didn't work. Any suggestions?