Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UKismetArrayLibrary
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetArrayLibrary.h |
| Include | #include "Kismet/KismetArrayLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetArrayLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Utilities|Array|Sort",
Meta=(DisplayName="Sort Integer Array", AdvancedDisplay="bStableSort,SortOrder"))
static void SortIntArray
(
UPARAM TArray < int32 > & TargetArray,
bool bStableSort,
EArraySortOrder SortOrder
)
Remarks
Sorts an array of integers.
Parameters
| Name | Description |
|---|---|
| TargetArray | The array to sort. |
| bStableSort | If a stable sort should be used. This preserves the order of identical elements, but is slower. |
| SortOrder | If the array should be sorted in ascending or descending order. |