Notifications
Announcements
Hi, How do I add a sort to the following search, would like to sort by date.
Hi @KT61, could you try:
Sort(Search(), DateField, Ascending)
You would enclose your current Search with a Sort() function as can be seen above. Replace DateField with the actual name of the date column.
If this solves your question, would you be so kind as to accept it as a solution.
Thanks!
Excellent thanks, can I link it to the sort button, and also sort by descending?
Hi @KT61 that is certainly possible.
You would have to add some additional code to your Icon OnSelect and the Sort() function.
(1) Save the icon click to a variable (OnSelect):
UpdateContext({varSort: !varSort});
(2) Extend the Sort()
Sort(Search(), DateField, If(varSort, Ascending, Descending))
I hope this helps!
Excellent, that worked. Thanks for the help
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 740 Most Valuable Professional
Michael E. Gernaey 342 Super User 2025 Season 2
Power Platform 1919 268