Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

Depth Sort Clause

The Location\Depth Sort Clause sorts search results by the depth of the location in the content tree.

Arguments

  • (optional) sorting direction, either ascending (default) or descending

Example

In the REST API, this Sort Clause is called LocationDepth. Use it in the SortClauses element of the payload of the POST /views request:

1
2
3
4
5
<Query>
    <SortClauses>
        <LocationDepth>ascending</LocationDepth>
    </SortClauses>
</Query>
1
2
3
4
5
"Query": {
    "SortClauses": {
        "LocationDepth": "ascending"
    }
}