# SectionName Sort Clause

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/saas/llms.txt).

SectionName Sort Clause

The `SectionName` Sort Clause sorts search results by the Section name of the content items.

## Arguments

- (optional) sorting direction, either `ascending` (default) or `descending`

## Example

You can use this Sort Clause over the REST API, in the `SortClauses` element of the payload of the [`POST /views`](https://doc.ibexa.co/en/saas/api/rest_api/rest_api_reference/rest_api_reference.html#tag/Views/operation/ibexa.rest.views.create) request:

**XML**

```xml
<Query>
    <SortClauses>
        <SectionName>ascending</SectionName>
    </SortClauses>
</Query>
```

**JSON**

```json
"Query": {
    "SortClauses": {
        "SectionName": "ascending"
    }
}
```
