Navigation
API > API/Runtime > API/Runtime/Core
Description
Stable sort elements using user defined predicate class. The sort is stable, meaning that the ordering of equal items is preserved, but it's slower than non-stable algorithm.
This is the internal sorting function used by StableSort overrides.
| Name | StableSortInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Sorting.h |
| Include Path | #include "Templates/Sorting.h" |
template<class T, class PREDICATE_CLASS>
void StableSortInternal
(
T * First,
const int32 Num,
const PREDICATE_CLASS & Predicate
)
Parameters
| Name | Remarks |
|---|---|
| First | pointer to the first element to sort |
| Num | the number of items to sort |
| Predicate | predicate class |