Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Gallery sort

Posted on by 107

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

 

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

    Perfect! Thank you sooooo much!

  • NandiniBhagya20 Profile Picture
    NandiniBhagya20 4,650 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)

  • Heidi04 Profile Picture
    Heidi04 107 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
    NandiniBhagya20 4,650 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"

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard