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
Answered

Sorting

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have a SharePoint list named "LS Checklist-2" that has the following columns: Date, Associate, Area, Shift, Mobile#, Inspection, Results, and Comments.  In my Power App on Browse Screen 1, that screen contains the following data: Shift, Mobile#, Date , Assoc. #.  I am trying to sort this data by DATE, but the sort icon is not working and this is the syntax I am using: 

UpdateContext({SortDescending1: !SortDescending1}).
 
Can anyone figure this out?  Thanks in advance!

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    hi @Anonymous 

     

    We really need to see your sort could, not that Context variable.

     

    Have you attempted to not use the Context variable and assuming they have the ability to click something (to reverse the sort) (like a chevron) and then just check if the chevron is down or up and sort based on that?

     

    Either way,  please show your sort code


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @Anonymous,

    Well, you should make sure that the Items property of the Gallery is set to like below:

    SortByColumns(Filter(list_name, StartsWith(Title, TextSearchBox1.Text)), "Date", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is my Sort Code: 

    UpdateContext({SortDescending1: !SortDescending1})
     
    You are correct, all I need is to sort up or down, there is another checkbox to return to a main screen.
     
    Thank-you!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is how the form is setup, I would like to sort from the third line (Date):

    autoguy57_0-1707393178252.png

    -First Box (Letter): Subtitle1-1

    -Second Box (Alpha-Numeric): Scooter#

    -Third Box (Date): Subtitle1

    -Fourth Box (Number): Body1

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is how the form is setup, I would like to sort from the third line (Date):

    autoguy57_0-1707393178252.png

    -First Box (Letter): Subtitle1-1

    -Second Box (Alpha-Numeric): Scooter#

    -Third Box (Date): Subtitle1

    -Fourth Box (Number): Body1

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 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard