Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Sort a List of Group Members (Select) for Adaptive Card choices

(0) ShareShare
ReportReport
Posted on by 445

I have an Adaptive Card that's posted in a Teams chat that gives the user a list of Group Members to choose from.  

What's the best way to sort this list alphabetically? 

 

TITLE: concat(item()?['displayName'],' (',item()?['jobTitle'],')')

 

Screen Shot 2022-03-07 at 2.58.06 PM.png
Screen Shot 2022-03-07 at 2.59.22 PM.png
 
 
  • v-LilyW-msft Profile Picture
    on at
    Re: Sort a List of Group Members (Select) for Adaptive Card choices

    Hi @anthonys123 

    Please refer to the following blogs and see if they are helpful enough:

    https://sharepains.com/2019/07/13/sort-an-array-power-automate/

    http://johnliu.net/blog/2018/12/how-to-implement-sort-with-microsoft-flow-in-3-actions-within-a-loop

    Hope the content above may help you.

    Best Regards

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1