public void sortOutlineView(String currentState){
  if (currentState.equals("method")) {
    sortViewByMethodName();
  }
 else   if (currentState.equals("class")) {
    sortViewByClassName();
  }
 else   if (currentState.equals("status")) {
    sortViewByStatusAndClassName();
  }
 else   if (currentState.equals("priority")) {
    sortViewByPriorityAndClassName();
  }
}

public void sortOutlineView ( String currentState ) { if ( currentState . equals ( "method" ) ) { sortViewByMethodName ( ) ; } else if ( currentState . equals ( "class" ) ) { sortViewByClassName ( ) ; } else if ( currentState . equals ( "status" ) ) { sortViewByStatusAndClassName ( ) ; } else if ( currentState . equals ( "priority" ) ) { sortViewByPriorityAndClassName ( ) ; } }
method that implements the command that sorts the nodes in the outline view .
