# Primary Asset List

**URL:** <https://forums.unrealengine.com/t/primary-asset-list/2651877>\
**Category:** Programming & Scripting\
**Tags:** arrays, data, unreal-engine, Blueprint, question\
**Created:** [August 28, 2025, 7:07pm UTC](https://forums.unrealengine.com/t/primary-asset-list/2651877 "2025-08-28T19:07:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mando\_2700](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mando\_2700](https://forums.unrealengine.com/u/Mando_2700)\
**Post date:** [August 28, 2025, 7:07pm UTC](https://forums.unrealengine.com/t/primary-asset-list/2651877/1 "2025-08-28T19:07:36Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/f/67f8e051212fd4c7e2116635df39bb02e11315da.png)

Hi, how can I specify the order of the elements read in each loop? Should I change something in their names or properties? Or is there other way?

---

<div class="post-metadata">

**Author:** ![BRGEzedeRocco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgezederocco/32/1216890_2.png) [@BRGEzedeRocco](https://forums.unrealengine.com/u/BRGEzedeRocco)\
**Post date:** [August 28, 2025, 8:23pm UTC](https://forums.unrealengine.com/t/primary-asset-list/2651877/2 "2025-08-28T20:23:43Z")

</div>

HI @Mando_2700 ,  
By default, a **For Each Loop** will go through the array in whatever order the array currently has,If you need a specific order, you have to sort the array before looping.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/2/8f2f736b68d1b5f2f0b26c2eb9a596e8a49425b9.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/c/87c04529ccc267f0f8e266d9d63e9c672ca62115.png)

I’ll also leave you some posts where they talk about the topic

- [How can I sort items in array by properties?](https://forums.unrealengine.com/t/how-can-i-sort-items-in-array-by-properties/281159)
- [BluePrint Array Sort](https://forums.unrealengine.com/t/blueprint-array-sort/437885)
- [Sort Array Inventory by Amount](https://forums.unrealengine.com/t/sort-array-inventory-by-amount/444236)

Hope it helps!

---

<div class="post-metadata">

**Author:** ![Mando\_2700](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mando\_2700](https://forums.unrealengine.com/u/Mando_2700)\
**Post date:** [August 28, 2025, 11:47pm UTC](https://forums.unrealengine.com/t/primary-asset-list/2651877/3 "2025-08-28T23:47:39Z")

</div>

Thank you for your response. However my array isn’t of any of the standard types. I tried something like this but I don’t know why it doesn’t work.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/3/d1336003fa52600dd0ba02e8f28a1bc276ab73a6.png)

---

<div class="post-metadata">

**Author:** ![Mando\_2700](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mando\_2700](https://forums.unrealengine.com/u/Mando_2700)\
**Post date:** [August 29, 2025, 9:46am UTC](https://forums.unrealengine.com/t/primary-asset-list/2651877/4 "2025-08-29T09:46:35Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/f/b8fe3e129d06856160cc9e311d17af4d9da81db2.png)

That’s how I solved it. Might help someone in the future.
