How can I sort array of strings ascending in c#, I want use something like std::sort in C++:
std::sort(population.begin(), population.end())
I
population.OrderBy(x => x.weights);
or:
population.OrderByDescending(x => x.fitness);