sort entry

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

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)]]...

asc means sort in ascending order. desc means sort in descending order. The default is 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.