SELECT riferimento
FROM tabella

ORDER BY INT(SUBSTR(riferimento,3,4))