Steam Friends (Advanced)

I have my steam friends set up in a scroll box:

d0fc1f1e659fa40a81cd32f8dab08e48859a13d4.jpeg

and I want to know how to organize the scroll box so that the online friends appear first, then away friends, then snooze, then offline, and so on. I have no idea of how to do this any ideas?
If you want my blueprint screenshots, just ask.

As far as i know a scrollbox is just a container of smaller widgets, dont think there is any sorting available,
i think you would have to loop over your friends list in stages before adding them
so loop over the list and pick out the online ones, then again for the away and so on and so forth only adding the ones you care about at that stage.

create a custom even that takes a status and does the looping and adding so you separate/encapsulate the functionality

most people would say this method is slow and bad but tbh on average you are likely to have no more than 100 friends max so looping over that is going to be less than a millisecond for a computer :slight_smile:

the only thing you may want to think about is loading the image avatars async so do that on the player row you use to display the information rather than before (maybe) its just a thought

edit

above you can see how to break the friend info and get at the status flag

Can you upload a more detailed screenshot, I’m sorta struggling with the looping. I got the online to appear first, but the offline and away and snooze, etc. don’t appear.
I don’t think I did it right:
14ee4c4d5bc53b59d0ba808992483d07e4996edc.jpeg

sure, ive just done this, took a couple of seconds, i havent had time to test it as im at work, had to remote on (sorry its squashed), needs some cleaning and error handling but you should get the jist

Thanks my man, really appreciate the help!