I am trying to create a sorted high score table.
I have created a struct within UE that holds two data types, an int and a string, that will store a players’ score and name. I will use a save game blueprint to store these scores within an array. However; it seems that I can not sort this array, the inbuilt sort node does not work with custom data types (or so it seems).
How can I use this struct as the data type when using Tarray in my custom sort class? I was hoping there would be a header file somewhere that contains all the structs created in the UE editor.
For example, in my header file I want to declare an Integer_Sort() function like this:
static void Integer_Sort(UPARAM(ref) TArray <ScoreWithPlayerName>& Array_To_Sort, bool Descending);