protected void sortPopulation(){
  if (Properties.SHUFFLE_GOALS)   Randomness.shuffle(population);
  if (isMaximizationFunction()) {
    Collections.sort(population,Collections.reverseOrder());
  }
 else {
    Collections.sort(population);
  }
}

protected void sortPopulation ( ) { if ( Properties . SHUFFLE_GOALS ) Randomness . shuffle ( population ) ; if ( isMaximizationFunction ( ) ) { Collections . sort ( population , Collections . reverseOrder ( ) ) ; } else { Collections . sort ( population ) ; } }
sort the population by fitness warn : used only with singular objective algorithms , multi - objective algorithms should implement their own ' sort '
