fixed parent_reorder to be significantly more robust (particularly supporting parent indexes replaced/removed in local)