# Uses of Enum Class
org.apache.cayenne.query.SortOrder

Packages that use SortOrder
Package
Description
org.apache.cayenne.query
Defines standard queries supported by Cayenne and extension mechanism to create custom queries.

- ## Uses of SortOrder in org.apache.cayenne.query

  Subclasses with type arguments of type SortOrder in org.apache.cayenne.query
  Modifier and Type
  Class
  Description
  `enum`
  `SortOrder`
  Constants to order query results (the ORDER BY clause).
  Fields in org.apache.cayenne.query declared as SortOrder
  Modifier and Type
  Field
  Description
  `protected SortOrder`
  Ordering.`sortOrder`
  Methods in org.apache.cayenne.query that return SortOrder
  Modifier and Type
  Method
  Description
  `SortOrder`
  Ordering.`getSortOrder()`
  Returns sort order for this ordering
  `static SortOrder`
  SortOrder.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static SortOrder[]`
  SortOrder.`values()`
  Returns an array containing the constants of this enum class, in the order they are declared.
  Methods in org.apache.cayenne.query with parameters of type SortOrder
  Modifier and Type
  Method
  Description
  `S`
  FluentSelect.`orderBy(String property, SortOrder sortOrder)`
  Add an ordering on the given property.
  `void`
  Ordering.`setSortOrder(SortOrder order)`
  Sets the sort order for this ordering.
  Constructors in org.apache.cayenne.query with parameters of type SortOrder
  Modifier
  Constructor
  Description
  ``
  `Ordering(String sortPathSpec, SortOrder sortOrder)`
  ``
  `Ordering(Expression sortSpec, SortOrder sortOrder)`