I am working on a project to create a search engine for a list in SharePoint.
We have been asked to apply some filters to the search engine. I was able to apply those filters but I am no longer able to SortByColumn, so now the gallery view is no longer sorting when selecting the sort button.
This is how the function looks like right now:
If(
IsBlank(GenderDropDown.Selected.Result) // && IsBlank(SpecialtyDropDown.Selected.Result)
,Filter('Provider Preference Profile',
StartsWith('Provider Name',TextSearchBox1.Text) || EndsWith('Provider Name', TextSearchBox1.Text)
|| StartsWith(Specialty,TextSearchBox1.Text) || StartsWith(Type1,TextSearchBox1.Text)
|| EndsWith(Language,TextSearchBox1.Text) || StartsWith(Location,TextSearchBox1.Text)),
Filter('Provider Preference Profile',
StartsWith('Provider Name',TextSearchBox1.Text),Gender=GenderDropDown.Selected.Result,Specialty=SpecialtyDropDown.Selected.Result)
)
Is there anywhere in this function where I could apply a SortByColumn at? If so, where is the best place to apply it at?