cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft
Microsoft

Sorting (ordering) arrays

Hi! I'm building an array dynamically in flow and would like to order (sort) the data in the array. How can I acheive it?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @PWrobel ,

 

I have the same issue but find two websites for me to solve it, it might help you to achieve your requirement:

http://johnliu.net/blog/2018/12/how-to-implement-sort-with-microsoft-flow-in-3-actions-within-a-loop

 

The answer from "v-bacao-msft"

https://powerusers.microsoft.com/t5/Building-Flows/Create-Update-Sharepoint-List-using-an-Excel-List...

 

Good luck!

ilu989

View solution in original post

5 REPLIES 5

Hi @PWrobel ,

 

This is the easiest approach, using an azure function:

 

https://veenstra.me.uk/2019/07/13/sort-an-array-or-collection-in-microsoft-flow/

Thanks Pieter. To bad there is nothing out of the box that does not require access to Azure subscription.

Hi @PWrobel ,

 

I have the same issue but find two websites for me to solve it, it might help you to achieve your requirement:

http://johnliu.net/blog/2018/12/how-to-implement-sort-with-microsoft-flow-in-3-actions-within-a-loop

 

The answer from "v-bacao-msft"

https://powerusers.microsoft.com/t5/Building-Flows/Create-Update-Sharepoint-List-using-an-Excel-List...

 

Good luck!

ilu989

View solution in original post

Thanks Ilu

 

I was thinking about building my own sort function in loop, so now I can just copy it 🙂

If you need a build-in function, please vote for this idea:

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Sort-Array/idc-p/486807#

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (107,370)