i have an array with struct elements and want to sort them in a simple way.
those elements should be sort by compare struct.value which is an int value.
Unrealwiki says to Array.Sort(comparefunction):
The comparefunction is the name of a function that takes two parameters of the array's element type and returns a value of type int.
i dont if it works for any type
my question is, if its possible to write such a comparefunction:
function int comparefunction(struct a, struct b)