codice:
select *, 
case stato
when "orc" then 1 
when "pck" then 2 
when "bol" then 3 
else 4 
end 
as gruppi 
from studente order by gruppi
anche cosi'....