select a.id,a.title,a.isimport,a.updatetime from ( select * from mubiaos where isimport=1 union select * from mubiaos where isimport=0 ) a order by a.isimport desc, case when isimport=1 then updatetime end desc, case when isimport=0 then id end asc
select a.id,a.title,a.isimport,a.updatetime from ( select * from mubiaos where isimport=1 union select * from mubiaos where isimport=0 ) a order by a.isimport desc, case when isimport=1 then updatetime end desc, case when isimport=0 then id end asc