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 / Dropdown list not sort...
Power Apps
Answered

Dropdown list not sorting by SharePoint People column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

Can anyone help me how to sort a dropdown list based on People field?

 

Dropdown is linked to SharePoint field field using the following code

Sort(Distinct(PendingWith.DisplayName),Descending)

 

If I change it to 

Sort(Distinct(PendingWith.DisplayName),PendingWith,Descending)

it doesnt work. Can someone help correct it?

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Distinct returns a column named Result, so try the formula like this:

     

    Sort(Distinct(PendingWith.DisplayName),Result,Descending)

  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Is PendingWith the column name of this person and group field? If so, the formula should be:

    Sort(Distinct(ListName,PendingWith.DisplayName),Result,Descending)

     Regards,

    Mona

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard