in mysql non dovrebbe eserci una funzione che ti fà questo però puoi fare così:
codice:
 select id
   from tabelle
 where id = 7
UNION
 select id
   from tabelle
 where id <> 7
 order by id