Hi all,
hope you guys can give me a hand with this.
Let’s imagine I have a TArray of 10 structs:
struct testStruct { int32 a; int32 b; int32 c }
Its content is for example this (first column are indexes):
0: 5, 4, 5
1: 1, 4, 5
2: 5, 4, 7
3: 7, 1, 5
4: 7, 2, 5
5: 3, 6, 7
6: 2, 4, 5
7: 1, 1, 7
8: 4, 1, 7
9: 6, 2, 7
How would I sort it on a, so to have this output?
0: 1, 4, 5
1: 1, 1, 7
2: 2, 4, 5
3: 3, 6, 7
4: 4, 1, 7
5: 5, 4, 5
6: 5, 4, 7
7: 6, 2, 7
8: 7, 1, 5
9: 7, 2, 5
Thanks in advance!