Class Cs.OrderByClause

java.lang.Object
org.openrewrite.csharp.tree.Cs.OrderByClause
All Implemented Interfaces:
Cs, Cs.QueryClause, org.openrewrite.java.tree.J, org.openrewrite.Tree
Enclosing interface:
Cs

public static final class Cs.OrderByClause extends Object implements Cs, Cs.QueryClause
Represents a C# LINQ orderby clause that specifies the ordering of results in a query.

For example:

     // Simple orderby with single key
     from p in people
     orderby p.LastName
     select p

     // Multiple orderings
     from p in people
     orderby p.LastName ascending, p.FirstName descending
     select p

     // Orderby with complex key expressions
     from o in orders
     orderby o.Customer.Name, o.Total * 1.08
     select o