users@glassfish.java.net

Re: How to Sort / OrderBy _at_OneToMany

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Sep 2007 14:16:44 PDT

I found the problem. The items were then being put into a HashMap(). I changed the code so that the object is declared as a Map and then when it is instantiated, it is initialized to a new TreeMap();

  Map<String,GenAttribute> Attributes;
  Map<String,GenMethod> Methods;
    Methods=new TreeMap<String,GenMethod>();
    Attributes=new TreeMap<String,GenAttribute>();

This seems to order the methods and attributes. Thank you for your help.
[Message sent by forum member 'rmccullough' (rmccullough)]

http://forums.java.net/jive/thread.jspa?messageID=236089