Folks,
I have an employee class, which have properties like empName and empAge. Both empName ans empAge can be duplicated.
And I have a list of employee objects, which contains duplicate empNames and empAge.
Now I want sort the List object based on empName and then based on empAge(if duplicate empName is there in the list).
Basically I want to know how to do mulitple sort on different properties, if I have duplicate values for a same property.
Note : I know that I have to use Comparator or Comparable for sorting based on sigle property ( like empName)