select id,name
from friends
order by id=5 desc
(残りの順序を気にしない場合、それ以外の場合、たとえば rest by id asc )
select id,name
from friends
order by id=5 desc, id asc
select id,name
from friends
order by id=5 desc
(残りの順序を気にしない場合、それ以外の場合、たとえば rest by id asc )
select id,name
from friends
order by id=5 desc, id asc