linq order by two columns code example
Example 1: c# linq order by multiple columns
var movies = _db.Movies.OrderBy(c => c.Category).ThenBy(n => n.Name)
Example 2: sql order by two columns
ORDER BY column1 DESC, column2
var movies = _db.Movies.OrderBy(c => c.Category).ThenBy(n => n.Name)
ORDER BY column1 DESC, column2