web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sort HTML table in Pow...
Power Automate
Unanswered

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,189 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,335 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard