Reordering code fragment