C# – How to sort by multiple fields (Linq)
Use the OrderBy() and ThenBy() Linq methods when you want to sort a list by multiple fields, like this: Ascending vs Descending order By default, OrderBy() and ThenBy() sort in ascending order. If you want to sort by descending order, use the Descending version of each method. For example, if I want to sort NFL … Read more