bhe la query è semplice,

SELECT * FROM tabella ORDER by nome;

adesso avrai nell'array di mysql i dati ordinati.

ciao