sort entry
You use the sort
entry to specify the order in which object-based query results are listed. The entry contains a comma-separated list of properties and a sort-order indicator, in this format:
object-property[+(asc|desc)][,.object-property[+(asc|desc)]]...
means sort in ascending order. asc
means sort in descending order. The default is desc
.asc
Sort order
Objects are sorted by properties in the order in which the properties are listed in the sort
entry. For example, to sort query results in ascending order based on namespace name and descending order based on size within each namespace, specify this entry:
<sort>namespace+asc,size+desc</sort>
If you omit the sort
entry, the query results are listed in order of relevance to the query criteria.
Sorting on content properties
You can sort only on single-valued content properties. You cannot sort on properties that can have multiple values.