header sort of in place