Reordering and cleaning