I feel bad posting this, because List
would be the much better choice. Something like this would be possible, though:
ArrayList> yourList = ...
Collections.sort(yourList, new Comparator>() {
@Override
public int compare(ArrayList one, ArrayList two) {
return one.get(1).compareTo(two.get(1));
}
});