Yes, thank you, Matsp! I needed that coffee more than I thought - it has been fixed.
@MK, it's a selection sort, but set up to sort on two keys, instead of just one.
Very similar to a bubble sort. It's slightly faster, in my testing, and easier to memorize.
I tend to use it for my odd and small job, sorting. It's no Quicksort, but on small
sets it's excellent.