I have Strings that are put into an ArrayList randomly.
String
ArrayList
private ArrayList teamsName = new ArrayList();
Take a look at the Collections.sort(List list).
You can simply remove the first element, sort the list and then add it back again.