selection sort modified to alphabetize a user-entered arrayList of strings