Sorry to have to bother you again.
I am wanting to create a telephone list of all users on a LDAP database. I have managed to extract the data, but cannot get the code to sort the results in alphabetic order , based on surname.
My code is:-
$justthese = array ("sn", "givenname);
$sortfield = "sn";
for ($i=0, $i<$info["count"]; $i++)
I have tried the sort statement within the "for" statement, defining $a=array($info) and numerous combinations of array " ( and
I have tried  at various places .
I have now exhausted my limited programmin knowledge, and would very much appreciate any help that anyone can give.