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 / Sorting a List of Numb...
Power Automate
Answered

Sorting a List of Numbers in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have created a List and have populated it with numbers. (I am not 100% sure if they are being seen as text or as numbers)

 

Anywho, I would like to sort the list numerically in ascending order.


I have found the Sort List command, but i cannot figure out what to put as the First Property to sort by.

 

SortCommand.png

 

Sorting a list of numbers seems like it should be very intuitive, but I am missing something.

 

One option I have, but would rather avoid, is sorting everything before I grab it off of the Excel spreadsheet.

 

Thoughts?

Frank D. Puthuff
Dell Technology

  • Verified answer
    mattias1172 Profile Picture
    on at

    Presuming all of the data is the same (in this case all int), you can actually just use the very basic "Sort List". No need to use the advanced slider. (I added a little bit of complexity generating random numbers every time). 

    mattias1172_0-1648141491049.png

    mattias1172_1-1648141514104.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It does seem to sort it, in a fashion.

    Where I would expect to see a list like this:

    • 14
    • 79
    • 492
    • 1257

    It is sorting it like it is purely alphabetical:

    • 1257
    • 14
    • 492
    • 79

    I don't know if this is because the numbers might actually be text, or if it does this regardless.

    But, the above answer gets me as close as I believe I can be.

    Frank D. Puthuff
    Dell Technology

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard