cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

4 REPLIES 4
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 🙂

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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