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 / Urgent help on Sorting...
Power Apps
Unanswered

Urgent help on Sorting functionality

(0) ShareShare
ReportReport
Posted on by 121

Hi 

 

I have a sharepoint list with 3 columns "Product" ,"Section","DisplaySequence"

 

Product       Section    DisplaySequence

Product1      Section1         1

Product2      Section3         2

Product3      Section5         1

Product1      Section2         2

Product1      Section2         1

Product2      Section3         1

Product2      Section3         3

 

I want to sort it in such a way that it should display me in below format .

 

Product       Section    DisplaySequence

Product1      Section1         1

Product1      Section2         1

Product1      Section2         2

Product2      Section3         1

Product2      Section3         2

Product2      Section3         3

Product3      Section5         1

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

    Hi @gautmish

     

    You should be able to use the SortByColumns function to do this.

     

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

     

    The formula would look something like this:

     

    SortByColumns( YourSharePointList, 
     "Product", Ascending, 
     "Section", Ascending, 
     "DisplaySequence", Ascending 
    )
  • gautmish Profile Picture
    121 on at

    Hi @timl,

     

    Product is a lookup column and section is choice field in sharepoint list .

     

    So it is giving me error , while applying sortcolumn .

     

    Thanks

    Gautmish

  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Try everything again but this time leave out the LookUp Column. Does it work? PowerApps and LookUp columns are not friends and there are a lot of functions that don't work with LookUp columns, this may be another one I didn't know about. 

  • gautmish Profile Picture
    121 on at

    Hi @Shanescows,

     

    I collected all the value into a collection and applied sortcolumn functionality and it worked fine .

     

    Thanks

    Gautmish

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 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard