eh si .. al posto dell'echo inserisci in un array poi fai sort e stampi