I have this ArrayList, that contains other ArrayLists
Original:
[[EHM, Evans, 45], [AB, Evans, 63], [J, Jones, 72], [RA, Jones, 85], [B, Smith, 55]]
I'd like to sort this ArrayList in alphabetical order, to give this output
Desired:
[[AB, Evans, 63], [B, Smith, 55], [EHM, Evans, 45], [J, Jones, 72], [RA, Jones, 85]]
This data is based on a textfile that i'm importing, so may change. I want to compare position 0 in each ArrayList and sort alphabetically. Currently the original list sits within a variable 'multiMarkArray'
How would I go about doing this in Java?
Thanks for any input - Phil