# Collapse list problem

**URL:** <https://forums.unrealengine.com/t/collapse-list-problem/489438>\
**Category:** UI\
**Tags:** list, bind, unreal-engine, Widget, UE4, question\
**Created:** [October 1, 2021, 10:40pm UTC](https://forums.unrealengine.com/t/collapse-list-problem/489438 "2021-10-01T22:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FridayJasonTR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FridayJasonTR](https://forums.unrealengine.com/u/FridayJasonTR)\
**Post date:** [October 1, 2021, 10:40pm UTC](https://forums.unrealengine.com/t/collapse-list-problem/489438/1 "2021-10-01T22:40:52Z")

</div>

Hello. As the note papers are collected, the collapsed buttons are opened and thus the 10 hidden buttons are filled without spaces. But I am having a problem with this issue. For example, when I collect the paper that activates the 4th button first and then the papers that activate the 1st and 2nd button, it is listed as 1-2-4 instead of 4-1-2 or 2-1-4. How can I sort by update?  
I want it to be as shown in red. the example on the left or the right could be.

 ![349743-issue.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/7/3976f656f698dca31e1e5449e347d30cf2e6bc34.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 2, 2021, 8:50am UTC](https://forums.unrealengine.com/t/collapse-list-problem/489438/2 "2021-10-02T08:50:34Z")

</div>

There’s no explicit way to sort children widgets in BPs.

* * *

- have an array of widget notes
- when you collect a note, set array element by index
- clear the widget container and add notes from the array

 ![349750-screenshot-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/f/48f95d597c9d8fcf9abd3f7e7fabb1f8e16967ed.png)

Something along the lines of the above.

* * *

The order will be preserved but you need to handle blanks since the entire container is cleared. For every invalid (missing note) add a dummy on the fly, or prepopulate the original array with blanks - this way you’ll have valid elements only.
