Thanks for Welcoming me
seetharaman venkatasamy wrote:Welcome to Javaranch Dinesh
well, how do you sort ArrayList<SampleVO> ?
I need to sort the VOs in the ArrayList by some attribute of VO like id or name. or is it not possible ? :|
If input is
mapkey1,arrlistvo1->arrlistvo1(somevo1,somevo2...)->somevo1("xyz",1),somevo2("abc",2)
The result of sorting VO by name should be
mapkey1,arrlistvo1->arrlistvo1(somevo2,somevo1...)->somevo2("abc",2),somevo1("xyz",1)
The result of sorting VO by id should be
mapkey1,arrlistvo1->arrlistvo1(somevo1,somevo2...)->somevo1("xyz",1),somevo2("abc",2)