How to order components like buttons on a UI widget UE5

So I’m making a UI journal for a project and right now buttons are created and assigned to the UI widget when user picks up the corresponding log entry. I.e. if I pick up log entry 2 then a button labeled ‘log entry 2’ will appear in the journal UI widget. However, if I then as a user picks up the entries out of order, ex. log entry 3 then 1 then 5, they will appear in the order they was picked up on the UI, as opposed to ordered numerically(1-3-5). How can I reshuffle the buttons dynamically so that they appear in order on the UI widget?

This topic has been moved from International to Programming & Scripting: UI.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this new category will help you to get an answer.

In the meantime, good luck and happy developing! :slight_smile: