Learnacy Lab
Split the row down to singles, then zip sorted runs together level by level: about n log n comparisons however the input is arranged.