added sorting by last name to view and controller