当您的 T0.name 是字符归档时,您应该按如下方式替换 Order By -order by case when cast(left (T0.Name,2) as int)>=8 then cast(left (T0.Name,2) as int)-8 else cast(left (T0.Name,2) as int)+4 end