code: public List<String> toList ()
      {
          ComparableArrayList<String> list = new ComparableArrayList<String>();
          list.addAll(_imports);
          list.sort();
          return list;
      }
docs: Convert the set of imports to a sorted list, ready to be output to a generated file.
  @return the sorted list of imports