reorder the optimization assignment