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