Announcements
I tried a number of different ways of doing this and after reading an article (With Statement managing Delegation – Practical Power Apps) by @WarrenBelz, I managed to get rid of the delegation error but still can't get my column name to work in a variable for a dynamic sort. Note, the filter works fine, the problem is with the sort. My questions are...
Hi @Anonymous ,
You need to use SortByColumns (not Sort) if you want a Variable sort column name as this takes a Text input, whereas Sort takes the column name, which cannot be set dynamically with a Text value.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
I had some other things wrong, this being one of them. But why would it give me a delegation warning with no error msg and just not work? I think the built-in error handling could be better on this function.
You could be right on the error handling at times . . .
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 534
WarrenBelz 416 Most Valuable Professional
Valantis 306