The Algorithms logo
The Algorithms
AboutDonate

Sort Population

K
function pop =SortPopulation(pop)
    [~,so] = sort([pop.Cost]);
        pop = pop(so);
end