Can someone help me get this gallery to sort by earliest date? When the app opens, it currently shows the oldest work installed, not the most recent. Not sure if it matters, but the SP List has the oldest work installed first as well. Please let me know if more info is needed.
HI @Shaguar357 ,Your default sort is ascending, you just need to update the formula on IconSortUpDown1.OnSelect to
UpdateContext({lvSortOrder:If(lvSortOrder=SortOrder.Ascending,SortOrder.Descending,SortOrder.Ascending,})
Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
Hi @LEGRANCHE
Thanks for the suggestion. I did switch the order up and I still have the same issue:
Would you have any other suggestions?
Thanks!
Hi @Shaguar357,
Modify your update context as below:
UpdateContext({SortDescending1: !SortDescending1})
Modify the Items property formula as below:
SortByColumns(list_name, "Date", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))
Hi @v-qiaqi-msft
Thanks for that suggestion. I had to switch the order of ascending and descending, but it's working now.
I appreciate your 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 757 Most Valuable Professional
Michael E. Gernaey 322 Super User 2025 Season 2
MS.Ragavendar 209 Super User 2025 Season 2