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 Automate / Why is reverse not wor...
Power Automate
Answered

Why is reverse not working on my array?

(0) ShareShare
ReportReport
Posted on by 9

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?

formula.jpg

output.jpg

result.jpg

Categories:
I have the same question (0)
  • Verified answer
    S-Venkadesh Profile Picture
    1,214 Super User 2026 Season 1 on at

    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:

    SVenkadesh_1-1681326863901.png

    Formula:

    reverse(variables('myArray'))



    Please hit thumbs up, if it helps!

    Best Regards,

    Venkadesh Sundaramurthy

     

  • yresto Profile Picture
    9 on at

    Thanks Venkadesh!

    That worked! Didn't realize the formula would not work unless it's in inside a Compose action. 👍

  • S-Venkadesh Profile Picture
    1,214 Super User 2026 Season 1 on at

    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.

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 Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard