Cheers for the effort WLGfx, I got what you were getting at. That's a standard bubble sort which I was going to fall back on. It's not far from the actual implementation, but I was looking to use the in built sort method as I assume that's going to be faster.
@Matty H and Dar13
Coolio, thanks for the link. I tried to find that in the C++ manual but failed, I have no idea why. Maybe I was just looking at the top level of list.
So, build a method that takes two parameters of the type of my struct, and that returns true or false. Then pass that method name to the sort method?
Nice one fellas!
It's not my fault!