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,851 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,963 Moderator 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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard