# Sorting Array Items by Order

**URL:** <https://forums.unrealengine.com/t/sorting-array-items-by-order/447217>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 14, 2019, 12:12pm UTC](https://forums.unrealengine.com/t/sorting-array-items-by-order/447217 "2019-04-14T12:12:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CGough](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CGough](https://forums.unrealengine.com/u/CGough)\
**Post date:** [April 14, 2019, 12:12pm UTC](https://forums.unrealengine.com/t/sorting-array-items-by-order/447217/1 "2019-04-14T12:12:02Z")

</div>

Hi,

I have an array of 88 Piano Key Static Meshes I have in a BP, they are named in number Key\_0,Key\_1,Key\_2 etc. They are all stored inside a scene component where I’m calling the array of children from inside that component to get all the keys and trying to add them to a new array in numerical order.

I’ve attached my BP so far, I think the problem I’m having is trying to count through the object names after the first loop.

Any tips would be most appreciated.

 ![274151-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/7/cd75d8e5414acf9110667d8a16a9d749f8a8b08c.jpeg)

 ![274152-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/5/21516356f6216a939d09f42446e5a3452f971f46.jpeg)
