What is the best way to sort an ArrayList in Java?
ArrayList
Where String[] is...
String[] = new String[] { \"abc\", \"abc\", \"ab
You write a Comparator that compares two String[] by the correct child, and then you pass it to Collections.sort(List list, Comparator super T> c).
Comparator
String[]
Collections.sort(List list, Comparator super T> c)