# Random Index Change

**URL:** <https://forums.unrealengine.com/t/random-index-change/103741>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 11, 2017, 6:14pm UTC](https://forums.unrealengine.com/t/random-index-change/103741 "2017-12-11T18:14:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artur77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artur77](https://forums.unrealengine.com/u/artur77)\
**Post date:** [December 11, 2017, 6:14pm UTC](https://forums.unrealengine.com/t/random-index-change/103741/1 "2017-12-11T18:14:13Z")

</div>

Hello,

Im having a little problem, i was following this guide to add buttons dynamically to a scroll list:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Everything is fine with that guide, all works as expected, my problem is that the buttons switch positions in the list , i.e. if I want to have an order i just type “button 1, button 2, button3, etc” and at first it works, but later on when i hit play the order changes, like “button 3” goes first, instead of “button 1, button 2” inside the list, and i dont know why they are switching places.

The buttons still do their job, i mean, if i press “button 1” it does what i program to do and the same with all buttons.

It seems that unreal changes the index inside the array when i hit play later.

I know that is not a big problem, If i just dont type numbers or anything consecutive it doesnt matter, but still is annoying to me, an sometimes i really want to have a order.

Anyone has any idea how to solve this?

How do i tell unreal not to change index?

How to tell unreal that doesnt change the order of my buttons?

APR
