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