public void sort(){
  Collections.sort(tasks);
  for (  PlotItem subitem : subitems) {
    subitem.sort();
  }
}

public void sort ( ) { Collections . sort ( tasks ) ; for ( PlotItem subitem : subitems ) { subitem . sort ( ) ; } }
sort all visualizers for their proper drawing order
