DCCoolBreeze
Programmer
I have a vector of class objects. Within the class object, I have several properties one of which is an integer. Is there a way I can sort the vector array relative to that specific integer property?
Example: Class Person
String fname
String lname
int age
Vector v = new Vector
v.add(...)
v.add(...)
v.add(...)
now sort v by age
Thanks for the help
Example: Class Person
String fname
String lname
int age
Vector v = new Vector
v.add(...)
v.add(...)
v.add(...)
now sort v by age
Thanks for the help