private void groupList(List list,List destList,ListIterator groupIterator,Node parentGroup,NodeTransformer composition, boolean preserveHierarchy){
NodeGroup group=(NodeGroup)groupIterator.next();
NodeSorter sorter=group.getSorter();
GraphicNodeComparator gcomp=new GraphicNodeComparator(sorter,composition);
sorter.sortList(list,gcomp,preserveHierarchy);
GraphicNode last=null;
List nodes=null;
GraphicNode current;
for (ListIterator i=list.listIterator();i.hasNext();){
current=(GraphicNode)i.next();