Sort on multiple values with LINQ

added by baldi
8/26/2010 12:11:43 AM

2 Kicks, 146 Views

With LINQ sort a collection with complex objects gets even easier than it was before. Simply use the OrderBy method of IEnumerableT. To sort on multiple values calling the GroupBy multiple times won't work! The answer is ThenBy.


0 comments