UMG Child Sorting?

Hello, I have a basic inventory system set up using blueprints. The inventory is an array, and when the inventory widget is called, it populates the inventory list with my items in the inventory array using a for each loop.

I would like to be able to click on one of the headers to sort the list of items based on the header. For example, if I click “Name”, it will sort the children alphabetically, or if I click “Weight”, it will sort the items based on the weight value. It seems to be something that should be basic functionality, but I can’t seem to find a way to do it in BP.

Sorry, the arrays do not have ready sort functions. But you can look at sorting algorithms and create your own functions. You can clean all the children and print them back on screen after you’ve done the sequencing.