added sort function to alphabetize list by first name inside function