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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Haque 283
David_MA 256 Super User 2026 Season 1
Expiscornovus 225 Most Valuable Professional