How to sort an array?

I have some integers in an array and I need to sort them by value, but I don’t think making a botched unflexible multiplexer is a good solution, especially as I might need to replace integers with structs. What is the correct, or at least a reasonable way to do this in Blueprints?

I think it can help you

6 Likes

Or just get this:

it’s free, and does lots of other things:

301480-sortarray.jpg

8 Likes

Thank you! I thought I understood how this worked and tried to adapt it to my needs, but I don’t think I can use the loop array indexes as as is. You seem to be using the integer values as array slot indexes, could you explain this a little bit?

2 Likes