BluePrint Array Sort

Hello! I currently have an array that is used to create patrol points for my AI. It worked up until I moved a patrol point and now the order my AI walks between the points has moved from Patrol Point 5, Patrol Point 6, Patrol Point 7 to Patrol Point 7, Patrol Point 5, Patrol Point 6. Naturally this is an issue.

My question is what would I have to do to sort these actors to use the points in ascending order?

The low-entry extended standard library has a sort array by comparator function, which is what you’d need here.

[LE Extended Standard Library in Code Plugins - UE Marketplace][1]

96652-lesort.png

Ran into a bit of a snag any clue what im doing wrong?

259777-capture.png

Awesome thank you for pointing this out. Ill give it a try.

Got it working I had the type as my actor not object reference. Thanks again!

Glad to hear! If you problem solve please check solved button for another people.