Sorting an Action List in Power Automate
I am trying to sort the output of an Action List by the Action Solicitor/Fundraiser. The Sort functionality seems simple, but isn't working for me. Any thoughts? It is likely either syntax or placement.
First, I tried to sort the “Append to Array” results near the end of the flow. I don't get an error, but it doesn't sort.

Then I tried sorting right after the list, but get an error.


Comments
-
@Reuben Schmitz It appears that I neglected to use the Compose Output - is working as it should.
0 -
@Reuben Schmitz
To use the sort() expression, you can read it here:when you sort without providing the “sortBy” I think it sort based on the first “simple” property it can find, which may not be the sorting you want.
First point is, you have to use the action that you did the sort on (Compose action), or you can using the array sorted directly in a apply to each loop or create html action. But if you use dynamic content directly from the Action List for Audit variable or List actions action, then the order is still going to the be “old” order before sort.
Also, you “can't” really sort on the List actions array of actions, as fundraiser is an array of system record id of the fundraiser, unlikely what you want to sort by, nor can sort by as array is not a simple type.
Then the question becomes, how are you handling action that has multiple fundraiser? From your Append to array variable action, it seems you are using a dynamic content called “Name”, but without seeing what your Apply to each looks like, can't really tell if you are using another apply to each for fundraiser array or only getting “first()” fundraiser.
Anyway, you don't need a separate Compose action (you can if you want), instead you can do the sort in the create html table action as the array from which you are creating html table for:
sort(variables('Action List for Audit'), ‘Action Solicitor Name’)
0
Categories
- All Categories
- 6 Blackbaud Community Help
- High Education Program Advisory Group (HE PAG)
- BBCRM PAG Discussions
- Luminate CRM DC Users Group
- DC Luminate CRM Users Group
- Luminate PAG
- 186 bbcon®
- 1.4K Blackbaud Altru®
- 389 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 14 donorCentrics®
- 355 Blackbaud eTapestry®
- 2.4K Blackbaud Financial Edge NXT®
- 616 Blackbaud Grantmaking™
- 542 Blackbaud Education Management Solutions for Higher Education
- 33 Blackbaud Impact Edge™
- 3.1K Blackbaud Education Management Solutions for K-12 Schools
- 909 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 207 JustGiving® from Blackbaud®
- 6.2K Blackbaud Raiser's Edge NXT®
- 3.5K SKY Developer
- 236 ResearchPoint™
- 116 Blackbaud Tuition Management™
- 375 YourCause® from Blackbaud®
- 160 Organizational Best Practices
- 232 The Tap (Just for Fun)
- 31 Blackbaud Community Challenges
- Blackbaud Consultant’s Community
- 19 PowerUp Challenges
- 3 Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 3 Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 71 Blackbaud Community All-Stars Discussions
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 743 Community News
- 2.8K Jobs Board
- Community Help Blogs
- 52 Blackbaud SKY® Reporting Announcements
- Blackbaud Consultant’s Community
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- Blackbaud Francophone Group
- Blackbaud Community™ Discussions
- Blackbaud Francophone Group