Why isnt this sort function working

I’m currently making a function to sort my custom struct by its priority float for some reason this is doing nothing to my array and outputting the array as if no sorting has occurred to it, can anyone help?

i noticed a simple bug in the sort after posting the question where i needed to add + 1 to i and fixed that however now it just clears my array not sure why

Here’s the problem:

311261-prob.jpg

It should be:

311262-correct.jpg

Thanks so much for the help, this got the function working

No worries. If you’re interested in more ‘funky’ blueprint nodes, there’s always this ( free ) library:

Although, watch out, it might need Visual Studio ( also free ), when it comes to project packaging.