StableSort

Specialized version of the above StableSort function for pointers to elements.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/Sorting.h

Include

#include "Templates/Sorting.h"

Syntax

template<class T, class PREDICATE_CLASS>
void StableSort
(
    T ** First,
    const int32 Num,
    const PREDICATE_CLASS & Predicate
)

Remarks

Specialized version of the above StableSort function for pointers to elements. Stable sort is slower than non-stable algorithm.

Parameters

Parameter

Description

First

pointer to the first element to sort

Num

the number of items to sort

Predicate

predicate class

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss