void ordenar(lista **l) {
if(*l == NULL || (*l)->prox == NULL) return; //se for nulo(vazio), ou apenas 1 elemento
lista *aux = *l, *t;
char s[100]; //precisa de espacao suficiente para armazenar o nome
while(aux != NULL) {
t = aux->prox;
while(t != NULL) {
if(strcmp(aux->nome, t->nome) > 0) { //se vir depois
strcpy(s, aux->nome);
strcpy(aux->nome, t->nome);
strcpy(t->nome, s);
}
t = t->prox;
}
aux = aux->prox;