order the update correctly