public void sort(){
  if (!sorted) {
    Collections.sort(samples);
    sorted=true;
  }
}

public void sort ( ) { if ( ! sorted ) { Collections . sort ( samples ) ; sorted = true ; } }
sort the data set in increasing order
