web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Gallery sort

(0) ShareShare
ReportReport
Posted on by 111

How to sort by date in a gallery? Now it sorts by title. If I click on the icon "sort..." - you can see this: UpdateContext({SortDescending1: !SortDescending1})

 

Heidi04_0-1666173351324.png

 

I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    Re: Gallery sort

    Hi @Heidi04 ,

    Go to Items property of BrowseGallery1:

    NandiniBhagya20_0-1666177153917.png

    And there you can change the column name with which you want to sort the gallery result. You can replace "Title" with "Created" or "Modified"

  • Heidi04 Profile Picture
    111 on at
    Re: Gallery sort

    Hi, thank you very much now it sorts correctly. But when I click on search, then I can no longer search by title.
    What do I have to do?

    Heidi04_0-1666180648210.png

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    Re: Gallery sort

    Hi @Heidi04 ,

    In the formula that you have written on Items property, just replace the first occurrence of "Date" (from the left) with "Title" inside StartsWith function - StartsWith(Title; TextSearchbox1.Text)

  • Verified answer
    Heidi04 Profile Picture
    111 on at
    Re: Gallery sort

    Perfect! Thank you sooooo much!

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.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard