Butti tutti i dati in un array con coppie "NOME"=>"AVG" poi lo ordini
e infine crei l'output con un foreach