c# list orderby multiple fields code example
Example 1: linq order by descending multiple fields
items.OrderByDescending(y => y.Year).ThenByDescending(m => m.Month);
Example 2: c# linq order by multiple columns
var movies = _db.Movies.OrderBy(c => c.Category).ThenBy(n => n.Name)