I need help to sort this list to be alphabetically
I have an array list in this list name have different categories and color. I need to sort it by cotegories, color and sort by ascending order
the out come will be like this Ami is name, cat is categories and color is blue..(color that I mention is color font)
Ami-cat-blue
Aki-cat-blue
Bobo-cat-blue
Bobby-dog-yellow
riki-dog-yellow
now I can sort it by color and categories but how to make name list in ascending order in jspCode:for( int i=0; i < records.size(); i++) { if (((String) (((Attributes) records.elementAt(i)).get("animaltype").get())).equals("cat")) { catList.add(records.elementAt(i)); } else if (((String) (((Attributes) records.elementAt(i)).get("animaltype").get())).equals("dogs")) { dogsList.add(records.elementAt(i)); } records.removeAllElements(); records.addAll(catList); records.addAll(dogsList);
Need HELP...thank you
Intelligent is me..
Sometimes got confius
Need HELP..!!
Can you post the rest of your HTML so we can see the data it is working on?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks