cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft PWrobel
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
ilu989
Level: Powered On

Re: Sorting (ordering) arrays

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
Super User
Super User

Re: Sorting (ordering) arrays

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/

Microsoft PWrobel
Microsoft

Re: Sorting (ordering) arrays

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

ilu989
Level: Powered On

Re: Sorting (ordering) arrays

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

Microsoft PWrobel
Microsoft

Re: Sorting (ordering) arrays

Thanks Ilu

 

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

max81
Level: Powered On

Re: Sorting (ordering) arrays

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
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,549)