Sorting in C#: OrderBy.OrderBy or OrderBy.ThenBy? What's More Effective and Why?
DZone
NOVEMBER 1, 2022
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.
Let's personalize your content