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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Sort in the Bro...
Power Apps
Answered

How to Sort in the Browse Screen by Creation Date

(0) ShareShare
ReportReport
Posted on by 5

power.app.pngHowdy all, very green power apps question. 

 

I would like the sort button to sort the items by creation date? 

 

Do you know how I might do this? Thank you.

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @midwestDataDad ,

     

    Could you please share more details about your scenario? Which data source are you working on?

     

    Assuming that you are working on SharePoint list. You could find that OnSelect of the sort button is:

    UpdateContext({SortDescending: !SortDescending})

    This update context means each click of this button would return the opposite result. Refer to below official doc about update context:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-updatecontext#syntax

     

    Then if you created the app through Start from data, then from SharePoint list, the Items of the Gallery would be like:

    SortByColumns(Filter(ListName,StartsWith(ColumnName,TextSearchBox.Text)), "Column Name for sorting",If(SortDescending,Descending,Ascending))

     

    So if you would like to sort by creation date, then modify this formula to below since Created is the column name of creation date:

    SortByColumns(Filter(ListName,StartsWith(ColumnName,TextSearchBox.Text)), "Created",If(SortDescending,Descending,Ascending))

     

    And if the data source is Dataverse, column name of creation date is Created On, you will need to replace it with "Created".

     

    Please refer to below doc about Sort and SortByColumns functions:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • midwestDataDad Profile Picture
    5 on at

    Thank you, that was it! I needed to change it to "Created" in the BrowseGallery code. Much Thanks Jeffer Ni!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard