Hi, I have a ArrayList containing the values retreived from the DB. I need to sort the data in two levels. The primary level is the field containing the Date and if the sorted values have the same dates the data needs to be sorted with the field containing Names. How do I do it? I have used the comparator to sort individually how do I club the results?
Originally posted by Vinitha Pai: Thanks for the response. But I need to retain the result of the first sort and then sort upon it. The second sort criteria should not effect the first result if there is no similar data.
Did you try Arman's suggestion ? I think you will find it does what you want.