Hi *.*,
I have a general doubt in sorting of
Java objects. I have a List which contain a set of java beans called "Cars". Each Cars bean has an attribute called "age". When I retrieve the List using another method, I dont get the List in a sorted manner.
I want to sort this List based on the attribute "age".
Which is the better apporach to do this sorting. Can I use Collection.sort() for this.
Here performance also is a problem. But one thing I can say is the size of the List is only about 20 max.
Thanks in Advance,
Regards,
Krishna Mohan R
rkmohan007@gmail.com