Sorting actor array based on variables

Hi, suppose I have an array for any ordinary actors. There is an Integer in each of them called Index. What would be the best way to go and sort the actor array based on ascending order of Index? Does the predicated sort can be used? If so can you explain how to use it?

Thanks in advance.

A quick idea: populate a new array with these integers with same order as the actor reference array, then you can sort both arrays using this: https://youtu.be/i5pwHSpuf7U

Can you show me how you use it? I’m pretty dumb xD

This is from another topic, but it’s the same logic:

Result: