update invocation set sort = sort - 1 where sort > #{oldSort} and sort <= #{newSort} and scheme_id = #{schemeId} update invocation set sort = sort + 1 where sort >= #{newSort} and sort < #{oldSort} and scheme_id = #{schemeId} update invocation set sort = sort - 1 where sort >= #{startSort} and scheme_id = #{schemeId}