Hi
I have the data displayed using the gallery, now I would like to add the column sorting
I started by alphabetically sorting through the description of the idea and the date it was created in ascending and descending order.
The way it works is I put a button that I click and it sorts in descending order, I click a second time and it sorts in ascending order.
Below you can see the code I'm using, currently it only sorts the date and the description of the idea doesn't want to sort, I don't know why, of course I'd like to add more such sorts
this code I have in Item on gallery
Hi
Thanks it´s working 🙂
BR
Andrej
Hi, you can read the documentation for it
this is the link
https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-sort
Hi @AndrejPavlik18 ,
Please try:
SortByColumns(
ThisItem.Data;
"Idea description";
If(varSortDescending1; SortOrder.Descending; SortOrder.Ascending);
"Created";
If(varSortCreated1; SortOrder.Descending; SortOrder.Ascending)
)
Best Regards,
Bof
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional