Or if you just want to sort by a and keep structs with equal 'a’s in the same relative order, then you can use:
Array.StableSort([](const testStruct& Lhs, const testStruct& Rhs) {
return Lhs.a < Rhs.b;
});
Steve
Or if you just want to sort by a and keep structs with equal 'a’s in the same relative order, then you can use:
Array.StableSort([](const testStruct& Lhs, const testStruct& Rhs) {
return Lhs.a < Rhs.b;
});
Steve