Class JqlOrderByBuilder

java.lang.Object
com.atlassian.jira.jql.builder.JqlOrderByBuilder

@NotThreadSafe public class JqlOrderByBuilder extends Object
Used to create OrderBy clauses to be included in Query's.

The OrderBy portion of a JQL query is made up of zero of more order clauses. Each clause composes of a field and either a SortOrder.ASC or a SortOrder.DESC sort order.

The order of sorting is from the first search clause in the list to the last. For example builder.status(SortOrder.DESC).component(SortOrder.ASC).buildOrderBy() will produce the Order By statement Order By status DESC component ASC which will first sort the result by status descending, and then by component ascending.

Since:
v4.0