# Change the order of the elements of a horizontal box in UMG

**URL:** <https://forums.unrealengine.com/t/change-the-order-of-the-elements-of-a-horizontal-box-in-umg/471513>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question, UMG\
**Created:** [September 17, 2020, 10:44pm UTC](https://forums.unrealengine.com/t/change-the-order-of-the-elements-of-a-horizontal-box-in-umg/471513 "2020-09-17T22:44:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fisher007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fisher007](https://forums.unrealengine.com/u/Fisher007)\
**Post date:** [September 17, 2020, 10:44pm UTC](https://forums.unrealengine.com/t/change-the-order-of-the-elements-of-a-horizontal-box-in-umg/471513/1 "2020-09-17T22:44:06Z")

</div>

Hey,

So normally if you fill a horizontal box with elements and select one element, you get the little arrow buttons on the a two sides to shift the element’s position compared to the other elements in the box. The problem is that I add the elements dynamically via Blueprint and naturally they are put one after the other as I add them. I would like them to be shuffled randomly, but I don’t find any node for this in Blueprint. Any help would be greatly appreciated!

Thanks,  
Fisher

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [September 18, 2020, 3:20pm UTC](https://forums.unrealengine.com/t/change-the-order-of-the-elements-of-a-horizontal-box-in-umg/471513/2 "2020-09-18T15:20:16Z")

</div>

hey there.  
i think when you spawn your sub-widgets, you should store them in an array, mix up this array (using random stuffs) and then add them to your h box.

---

<div class="post-metadata">

**Author:** ![Fisher007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fisher007](https://forums.unrealengine.com/u/Fisher007)\
**Post date:** [September 18, 2020, 3:45pm UTC](https://forums.unrealengine.com/t/change-the-order-of-the-elements-of-a-horizontal-box-in-umg/471513/3 "2020-09-18T15:45:59Z")

</div>

This is exactly what I ended up doing as well, haha. Thank you!
