How can I sort a List alphabetically? October 12, 2022 by Tarik Assuming that those are Strings, use the convenient static method sort: Collections.sort(listOfCountryNames)