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 Platform Community / Forums / Power Apps / Sort Ascending / Decen...
Power Apps
Unanswered

Sort Ascending / Decending Not Working

(0) ShareShare
ReportReport
Posted on by

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:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at
    Re: Sort Ascending / Decending Not Working

    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
    on at
    Re: Sort Ascending / Decending Not Working

    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
    on at
    Re: Sort Ascending / Decending Not Working

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

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Sort Ascending / Decending Not Working

    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
    on at
    Re: Sort Ascending / Decending Not Working

    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

Forum hierarchy changes are complete!

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 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard