SELECT DISTINCT idmess, numero, nome FROM tabella ORDER BY numero ASC

questo intendi?