Hi
So, there are a couple ways, well many, some easier than others. I haven't specifically looked for one, but there may be a pre-existing user shared PCF control that you can use.
If you specifically have to have a popup that appears over the exact single column, then you will either have to create a PCF Control or a Canvas App Custom Control, which can do it once built.
I do not know what level of sorting you want but the easier options are to either Add a Chevron Icon to each Column or to place a Dropdown/Combobox, with all the different sorting you want to do. Then in your Items property you would check if a sort option has been selected and then sort that way.
Now again, there are many ways, and you might say yeah but I want to be able to sort by all the different columns in different ways, then my answer is, you need more help then will probably be here.
So lets say you have 6 field
Field1 - Field6
And you want to sort by one of them Asc/Desc
Option 1. Use a dropdown set to allow no selected option(its a property) OR make it default to whatever is the default sort
Option 2. Use a combobox set to a single selection
Items of either
["SortOption1","SortOption2" and so on]
In the Items property
SortByColumns(
YouSource,
Add a switch statement here to add the sort depending on whats selected,
SortOrder.Ascending/Descending
)
So it would look like this on the screen
In the Chevron Icon (called Down), you would sort by asc, then when the person clicks that icon, in that icons ICON property change it to Icon.Up and the chevron will look up and then sort by Desc.
I do not recommend adding chevrons to everything but if you do it makes your sorting and expressions way larger but possible.
So there are two easy ways to do it.