The Algorithms logoThe Algorithms
About
function pop =SortPopulation(pop)
    [~,so] = sort([pop.Cost]);
        pop = pop(so);
end

SortPopulation

A