| 
|  | Branches:
class BranchComparator implements Comparator {
  public int compare(Object o1, Object o2) {
    return ((Branch)o1).getName().compareTo(((Branch)o2).getName());
  }
  public boolean equals(Object o) {
    return this.equals(o);
  }
}
TreeSet ts = new TreeSet(new BranchComparator());
Enumeration en = Branch.getBranches(env);
while (en.hasMoreElements()) {
  ts.add(en.nextElement());
}
Iterator itr = ts.iterator();
while (itr.hasNext()) {
  Branch brnch = (Branch)itr.next();
  out.print("<TR>");
  out.print("<TD>"+brnch.getName()+"</TD>");
  out.print("<TD>"+brnch.getDescription()+"</TD>");
  out.print("</TR>");
}| Branch | Description | 
|---|
 |  |