Enumeration e = Collections.enumeration(v); Vector tmp = new Vector(); for (; e.hasMoreElements();) tmp.add(e.nextElement());  contents = tmp;
  protected void sort(Vector v)  {    Collections.sort(v, comparator);    Enumeration e = Collections.enumeration(v);    Vector tmp = new Vector();    for (; e.hasMoreElements();)      tmp.add(e.nextElement());    contents = tmp;  }