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