OrderBy

The LINQ operator that sorts a sequence by a key you choose.

In more detail

OrderBy(p => p.Name) sorts products by name. Over IQueryable<T> it becomes an SQL ORDER BY clause.

Related terms

Taught in

References