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 Apps
Unanswered

Search code

(0) ShareShare
ReportReport
Posted on by
Hello,
I'm looking for a code to sort my list by date.
Replace this code by sort by date
If(SortDescending1; "Trier la liste par ordre alphabétique inverse"; "Trier la liste par ordre alphabétique"

Capture.PNG

 

 Thnak you

 

 

 

 

Categories:
I have the same question (0)
  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @Mak76 

    This is not the place that you should modify if you want to change the sort field for your gallery.

    I suggest that you set this back to the default value of this:

    UpdateContext({SortDescending1: !SortDescending1})

    If you then view the Items property of your gallery control, the default value of this will include a call to the SortByColumns function. You should modify this so that it refers to the date field that you want to sort by.

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

     

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard