added sorting names alphabetically to print students method