Hi @bmurphy1
Can you try to update the expressions as:
The Browse Screen
OnVisible -
ClearCollect(CollMyItems, Filter('Rep 1 Test', 'Created By'.DisplayName=_CurrentUser))
a) If you want to sort first on Title and then on ID.
The Gallery
Items -
SortByColumns(Filter(CollMyItems, StartsWith("Title", TextSearchBox1.Text)),"Title", If(SortDescending1, Descending, Ascending),"ID", If(SortById1, Descending, Ascending))
Button to sort by ID
OnSelect -
UpdateContext({SortById1: !SortById1})
b) If you want to toggle sort between Title and ID.
Items -
If(SortBy = "ID",SortByColumns(Filter(CollMyItems, StartsWith("Title", TextSearchBox1.Text)),"ID",If(SortById1, Descending, Ascending)), SortByColumns(Filter(CollMyItems, StartsWith("Title", TextSearchBox1.Text)),"Title",If(SortDescending1, Descending, Ascending)))
Button to sort by ID
OnSelect -
UpdateContext({SortBy:"ID",SortById1: !SortById1})
The Sort Button
OnSelect -
UpdateContext({SortBy:"Title",SortDescending1: !SortDescending1})
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!