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

Sort Actors by Location

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

Inputs

In
Exec

Relative To
Vector

Location 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