I was following this video here:
https://www.youtube.com/watch?v=8bNCBe2wzYI
I have a gallery, that is pulling from my Engineers table.

So my thinking was, as there are two different teams mixed in there.
If I click the button that says EXO, it changes the variable below:
Set(var_engineertype,"Online")
Clicking the other will change it to "On-Prem"
In the items of my gallery, I have this:
Filter(Engineers,EngineerType.Value=var_engineertype)
This is working as expected. It switches the engineers.
I am having trouble figuring out the filtering AND MULTIPLE Sorting.
So for my onvisible screen, I ahve this:
Refresh(Engineers);
UpdateContext({var_Eng:Blank()});
UpdateContext({var_TotalCasesSort:Blank()});
UpdateContext({var_TotalCrits:Blank()});
UpdateContext({var_LastAssigned:Blank()});
UpdateContext({var_LastCritAssigned:Blank()});
If(!IsBlank(var_Eng),SortByColumns(Engineers,"EngineerDisplayName",If(var_Eng=true,Ascending, Descending)));
If(!IsBlank(var_TotalCasesSort),SortByColumns(Engineers,"TotalAssigned",If(var_TotalCasesSort=true,Ascending, Descending)));
If(!IsBlank(var_TotalCrits),SortByColumns(Engineers,"CritAssigned",If(var_TotalCrits=true,Ascending, Descending)));
If(!IsBlank(var_LastAssigned),SortByColumns(Engineers,"LastAssigned",If(var_LastAssigned=true,Ascending, Descending)));
If(!IsBlank(var_LastCritAssigned),SortByColumns(Engineers,"LastCritAssigned",If(var_LastCritAssigned=true,Ascending, Descending)));
On each of my Sort Icons, I ahve this:
UpdateContext({var_TotalCasesSort:Blank()});
UpdateContext({var_TotalCrits:Blank()});
UpdateContext({var_LastAssigned:Blank()});
UpdateContext({var_LastCritAssigned:Blank()});
UpdateContext({var_Eng:!var_Eng});
So my thinking was, each time I click on a Sort above a specific Column, it would blank the other variables out, and sort that specific column Ascending or Descending, depending on true or false.
This was not working.
I am starting to think I have to change the items portion of the gallery WITH my sorting.
That is where I am getting lost.
Anyone help with setting this up?
I want to be able to sort by engineer type first to fill the gallery with those specific engineers.
Then, be able to sort the columns just by clicking on the specific Icons. Not combing the sorting just either sort by Engineer, or Sort by Total Cases, etc.