Sorting a TArray of structs

It should be noted that since my earlier reply, we now have a more convenient algorithm for this kind of thing:

Algo::SortBy(ArrayOfMyStruct, &MyStruct::TargetDistance);

Steve

3 Likes