posted 15 years ago
Hi everyone,
I have a list in the following format,
A, B, C, 3
X, Y, Z, 2
J, K, L, 4
P, L, M, 1
Now I need to sort this list based on the 4th index (integer). Can somebody tell me how can I go about it.
I've tried Collections.sort, but it doesnt help me when I have numbers greater than 9, like 10, it puts 1,10... etc.
Thanks.