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 / Sort Ascending / Decen...
Power Apps
Answered

Sort Ascending / Decending Not Working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am VERY new to PowerApps.  It looks like a very useful tool.  I am creating my first one with a basic app from a sharepoint list.  Everything seems fine but I am not able to sort the gallery by a completed date in descending order.  Here is the formula I am using.

 

Sort('TableName', "Date Completed", SortOrder.Descending)

 

No matter what I do it will not sort by the Column "Date Completed" in a descending order.  The advanced section under the data portion to the right has a yellow triangle at the bottom of it too.  I am assuming something is wrong but not sure what it is.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It looks like there is also a Blue circle in the upper left of the window.  If I hover over the Date Completed section I get the following warning.

     

    PowerApp Error.jpg

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    If you click on the 'More options' button on the right-side pane where you see a yellow triangle, it will expand and show all properties for that control; when you do that, do you see the yellow triangle near a specific property? If that's the case, it will help narrowing down the problem.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The yellow triangle is not near any specific field.PowerApp Error 2.jpg

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    You do not need to put SortOrder. in order for sort to work.

    Just replace your function with 

    Sort(PowerApps_Test_List,Date_x0020_Completed,Descending)

    Replace PowerApps_Test_List with your SharePoint list.

    Also always try to use PowerApps autocomplete for functions as writing them manually can lead to errors.
    Notice how the collumn Date Compelted has to have _x0020_ in it to work as it is a symbol for space.

    I tesed it out on my SharePoint and it works.

    All Items (unsorted):
    8.png

    With the Sort function:
    9.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That worked perfectly.  I knew it had to be something simple.  Thanks for all the 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.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard