Reorder algorithm step.