Sort an ArrayList of semicolon separated values by a field
I have an ArrayList of semicolon separated values that needs to be sorted
by the second field of each of the ArrayList elements.
Each of the elements of the array list have the form:
field1;field2;field3;field4
and need to be sorted by field.2 Is there a way to do this without having
to create a temporary array, switch field1 and field2, sort that array,
and then switch field1 and field2 again?
Thank you for any help you might be able to offer
No comments:
Post a Comment