per versioni di mySQL < 4.0:
codice:
SELECT IF(campo<6,campo+ (MAX(campo)+1)+6,campo) AS temp,campo FROM tabella
GROUP BY campo
ORDER BY temp;