select stage,studentno as total from mv_dp_xxgmqk  order by 
(case when stage='小学' then 1 
  when stage='初中' then 2
  when stage='高中' then 3
 end)
