sort a list of objects based on runtime property
- by jijo
I have an arraylist of VOs. These objects have many properties and corresponding get/set methods. I want to sort this array list based on a property which I'll be getting in runtime.
Let me explain in detail. My VO is like this
public class Employee {
String name;
String id;
private String getName() {
return name;
}
…