Sorting in C#: OrderBy.OrderBy or OrderBy.ThenBy? What’s More Effective and Why?

Suppose we need to sort the collection by multiple keys. In C#, we can do this with the help of OrderBy().OrderBy() or OrderBy().ThenBy(). But what is the difference between these calls? To answer this question, we need to delve into the source code.

The article has three chapters:

CategoriesUncategorized