How to sort by multiple parameters using Blueprints?

After following the excellent sorting thread by @Supremative Sorting algorithms in Blueprints

I am using a simple bubble sort to arrange soccer league tables by points in descending order. However; teams that have the same number of points then need to be sorted by a goal difference parameter. How do I modify my blueprint to accomplish this?

Try adding a condition to the swap: (A.x < B.x) OR ((A.x == B.x) AND (A.y < B.y))