Add child widget in specific order

So I have a setup here:

Everytime a player picks up a weapon, it adds a child widget to a box on player hud. However, It changes based on most recent weapon picked up. I’d like to make a function or something along that line that reorders their display on the hud based on the switch list in the first issue (e.g I want it to go glock->shotgun->ump not gunipickedupfirst->gunipickedupsecond-gunpickedupthird)

How would I go about re-sorting them? I was thinking of having it resort in the second picture but am unsure of how the logic would work.

Any advice??

Can I have 2 pistols and/or 2 shotguns? Or 1 of each type only? Is there a gun limit?

Aim was to be a bit modular, but the issue is resolved and is more hard coded for the time being.