Sorting in place, some other things going on