Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you write code to sort a list these days? [closed]

Tags:

sorting

People in java/.net world has framework which provides methods for sorting a list.

In CS, we all might have gone through Bubble/Insertion/Merge/Shell sorting algorithms. Do you write any of it these days?

With frameworks in place, do you write code for sorting?

Do you think it makes sense to ask people to write code to sort in an interview? (other than for intern/junior developer requirement)

like image 638
shahkalpesh Avatar asked Mar 14 '26 06:03

shahkalpesh


1 Answers

There are two pieces of code I write today in order to sort data

list.Sort();
enumerable.OrderBy(x => x);  // Occasionally a different lambda is used
like image 156
JaredPar Avatar answered Mar 15 '26 23:03

JaredPar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!