public class Orders extends Object
Constructor and Description |
---|
Orders() |
Modifier and Type | Method and Description |
---|---|
static Order |
asc(Expression e)
Sort the result of a query in ascending order by the expression.
|
static Order |
desc(Expression e)
Sort the result of a query in descending order by the expression.
|
public static Order asc(Expression e) throws InvalidDataException
e
- The expression to use for sortingInvalidDataException
- If the expression is nullQuery.order(Order)
public static Order desc(Expression e) throws InvalidDataException
e
- The expression to use for sortingInvalidDataException
- If the expression is nullQuery.order(Order)