Wrap timestamp reodering code.