Added alphabetizing functionality