Hi,
I have code to store a custom class in an arraylist. CarMake, Year and CarModel are all properties inside the custom class Car for which data is stored in the arraylist. I need to sort the data according first based on CarMake. Then within CarMake the data needs to be sorted by Year and then within Year the data needs to be sorted by ModelName. Any help of how to do the above, will be greatly appreciated.
Thanks a lot in advance.
I have code to store a custom class in an arraylist. CarMake, Year and CarModel are all properties inside the custom class Car for which data is stored in the arraylist. I need to sort the data according first based on CarMake. Then within CarMake the data needs to be sorted by Year and then within Year the data needs to be sorted by ModelName. Any help of how to do the above, will be greatly appreciated.
Thanks a lot in advance.
Comment