I have an ArrayList, which contains X amount of
String[]s. Each string array has stuff like Name, Surname, Address, Town, etc.
I want to be able to sort the ArrayList of arrays, by a specified entry in each array. name, or surname, or... etc. I assume there would be a sort method, which would take a parameter searchBy or something like that.
What would be the best way to do this?
Thanks in advance for any help.