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 / Sort HTML table in Pow...
Power Automate
Suggested Answer

Sort HTML table in Power Automate

(1) ShareShare
ReportReport
Posted on by 45
Hello,
 
I want to sort my HTML table by the delay value, from negative to positive value. I use sort expression and already state based on which column. But somehow the result is still in a messy order. Did I write the expression correctly or is there any other way to sort the value? Also, I want the sorting to start from -7 to the positive value.
 
The expression
sort(outputs('Compose_System_Table'), 'Delay')
The flow
 
 
The result
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,975 Most Valuable Professional on at
    I noticed you are using an int function in your filter array action criteria/where statement. Are the values in the Delay column of type string/text? Can you share sample of the Compose System Table outputs?
     
    Your expression syntax seems fine btw. Below is a test with a sample array to demonstrate the same approach in a Select action
     
    IntArray with some sample data underordered (with a Delay column which has integer values)
    createArray(json('{ "first": "Amalie", "Delay": -3 }'), json('{ "first": "Elise", "Delay": 3 }'), json('{ "first": "John", "Delay": -7 }'), json('{ "first": "Jane", "Delay": -4 }'))
     
     
    Expression in the Select action
    sort(variables('IntArray'), 'Delay')
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Super User 2026 Season 2 on at
    HI
     
    I believe the issue is you are sorting based on a string column versus an int column. then comparing that to a int() then a number.
     
    Your sort will be incorrect if you are sorting by strings, not actually numbers hence your issue .
  • veracruz Profile Picture
    45 on at
     
    I got it now, thank you.
  • veracruz Profile Picture
    45 on at
    Hi @FLMike,
     
    I got it now, thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 312 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 154 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 143 Super User 2026 Season 2

Last 30 days Overall leaderboard