Native Function Library Documentation > Native Function Library BPLibrary > Sort Actors by Distance

Sort Actors by Distance

Sorts an array of actors relative to distance to the provided actor from closest to furthest.

Inputs

In
Exec

Relative To
Actor Object Reference

Actor to sort against

Array
Array of Actor Object References

Array to sort

Outputs

Out
Exec

Return Value
Array of Actor Object References

Sorted Array from closest to furthest