This should work for you:
var movies = _db.Movies.OrderBy(c => c.Category).ThenBy(n => n.Name)
More Related Contents:
- How can I do an OrderBy with a dynamic string parameter?
- Linq To Sql – Dynamic OrderBy – Case When
- LINQ OrderBy not ordering .. changing nothing .. why?
- Convert this sql command to c# linq
- LINQ equivalent of foreach for IEnumerable
- Is it possible to Pivot data using LINQ?
- What are the benefits of a Deferred Execution in LINQ?
- LINQ: Distinct values
- Entity framework linq query Include() multiple children entities
- Use own IComparer with Linq OrderBy
- LINQ to Entities does not recognize the method ‘System.String Format(System.String, System.Object, System.Object)’
- How to view LINQ Generated SQL statements?
- LINQ across multiple databases
- Convert String to Int in EF 4.0
- LINQ Orderby Descending Query
- System.LINQ.Dynamic: Select(” new (…)”) into a List (or any other enumerable collection of )
- LINQ Join with Multiple Conditions in On Clause
- Standard Deviation in LINQ
- How To Project a Line Number Into Linq Query Results
- Calculate difference from previous item with LINQ
- LINQ with SQLite (linqtosql)
- Entity Framework – “Unable to create a constant value of type ‘Closure type’…” error
- How to create a dynamic LINQ join extension method
- EF 4: Removing child object from collection does not delete it – why?
- Entity Framework Include OrderBy random generates duplicate data
- How to dynamically add OR operator to WHERE clause in LINQ
- Greater Than Condition in Linq Join
- How do I write this cross apply query in LINQ-to-SQL?
- Can’t make GroupJoin work. NavigationExpandingExpressionVisitor exception
- LINQ: How to convert the nested hierarchical object to flatten object