Sort Float Array

Callable
SortFloatArray

Sorts an array of actors by a float property (via delegate). Uses introsort for guaranteed O(n log n).

Type: Callable (has execution pins)
Category: Fortuna|Array & Collection
Keywords: array & collection

Inputs

NameTypeDefaultDescription
ArrayTArray<AActor*>Array parameter
bAscendingbooltruebAscending parameter

Outputs

NameTypeDescription
SortedArrayTArray<AActor*>Array output

Example Use Cases

Example 1

Sort enemies by distance for targeting.

Example 2

Order players by score on a leaderboard.