Sort Float Array
CallableSortFloatArraySorts 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
| Name | Type | Default | Description |
|---|---|---|---|
| Array | TArray<AActor*> | — | Array parameter |
| bAscending | bool | true | bAscending parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| SortedArray | TArray<AActor*> | Array output |
Example Use Cases
Example 1
Sort enemies by distance for targeting.
Example 2
Order players by score on a leaderboard.