sort array alpha

added sort to function, putting items in alpha