Getallactorswithtag sort is my problem

as you can see on the image, getallactorswithtag returns an array.
But this array order is my problem. I want A…C
Is there any easy solution ?
Best regards


Take a look at this question , sound like you have to work around the problem

Are these buttons next to each other, or spread across the level?

This method is never intended to return actors in any specific order - if it did, it would be much slower.

It’s best to sort them after you get them.

There are pre-existing BP Sort algos in Community-Tools and Github if you search.
But if you only need to locate a small subset, GetAllActorsWithTag may be easier.:wink:
I wonder if there’s any performance benchmarks of sorting vs multiple w/ tags calls?