Sorting a small array?

I am using get all actors of class to gather all the bp’s (which are just duplicates in the scene) and using the position of those blueprints to switch camera positions.

I’ve discovered that the Get all Actors functions does not deliver a sorted array by default and is sometimes even different upon playing the project multiple times. Is there a way to sort an array after it’s collected? I’ve added tags to each BP in the scene (numbers 1-7) in the hopes I can but I feel i’m just searching around in the dark with no real logic to think of.

Any help on this?

You just can just make a function that finds the lowest tag

( It’s less messy if you give the BPs and integer ID. Then at least it is an integer )

Then you can just keep finding the lowest

I’ll just leave it here:

Seems relevant.

2 Likes

Thanks for the replies guys! very informative.