Hi, I'm new and have following problem:
From MS Lists (SharePoint Lists) I created an App.
The Sort-Function works fine with Title or ID.
SortByColumns(Filter([@Sponsoren_2023]; StartsWith(Referent.DisplayName; TextSearchBox1.Text)); "Title"; If(SortDescending1; SortOrder.Descending; SortOrder.Ascending))

When I use another Column it doesn't work:

SortByColumns(Filter([@Sponsoren_2023]; StartsWith(Referent.DisplayName; TextSearchBox1.Text)); "Referent_Vorjahr"; If(SortDescending1; SortOrder.Descending; SortOrder.Ascending))

So please help 🙂