Notifications
Announcements
I'm pulling comments from a list item, the client wants me to number them and sort them by oldest first.
I tried the reverse() function to reverse the order of my array items, but I get the same result as when they weren't sorted.
Any ideas?
Hi @yresto,
To reverse an array in Power Automate, you can use the "Compose" action along with the "reverse" function. Here's how you can do it:
Formula:
reverse(variables('myArray'))
Please hit thumbs up, if it helps!
Best Regards,
Venkadesh Sundaramurthy
Thanks Venkadesh!
That worked! Didn't realize the formula would not work unless it's in inside a Compose action. 👍
Hi @yresto , I'm glad I could help!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
trice602 378 Super User 2025 Season 2
David_MA 273 Super User 2025 Season 2
Expiscornovus 135 Most Valuable Professional