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
- LINQ — Language Integrated Query: a set of C# operators such as Where, Select and OrderBy for filtering, shaping and combining sequences of data.
Taught in
- Collections, Generics, and LINQ — Modern .NET Core, C# & Enterprise Microservices