Caso nao possa mudar na sua query SQL (recomendado)
SELECT * FROM `tabela` ORDER BY `nome` ASC
--
Pode usar o sort() <?php
$fruits = array("lemon", "orange", "banana", "apple");
sort($fruits);
foreach ($fruits as $key => $val) {
echo "fruits[" . $key . "] = " . $val . "\n";
}
?>
Sera impresso:
fruits[0] = apple
fruits[1] = banana
fruits[2] = lemon
fruits[3] = orange