Query sort parameter
The oslc.orderBy query parameter defines how the results of a query are ordered. For example, a list of work orders can be ordered by date or by ID.
Example: Specify the sort order
The following oslc.orderBy query returns work orders based on the creation date in ascending order and the estimated duration in descending order:+dcterms:created,-m:estimatedDuration
In this query,+
indicates an ascending sort order and -
indicates a descending sort order. The
following oslc.orderBy parameter is not valid:
dcterms:created,-m:estimatedDuration
because there is no default sort order in
OSLC query syntax. There must be an explicit +
or -
with the
property name. The oslc.orderBy parameter is not supported for nested
properties. For example, dcterms:creator{+foaf:name}
is not supported.