add the rotate and sort to ubin steps