I have this LINQ statement:
db.PhraseCategories.OrderBy(c => c.Name);
You could use ThenBy
extension method to performs a subsequent ordering of the elements in a sequence in ascending order according to a key
.
db.PhraseCategories
.OrderBy(c => c.GroupId)
.ThenBy(c => c.Name);
Or
from c in db.PhraseCategories
orderby c.GroupId, c.Name