<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/services](./services.md) &gt; [SearchQuery](./services.searchquery.md) &gt; [sort](./services.searchquery.sort.md)

## SearchQuery.sort property

A name of the attribute to perform result sorting. For example, `"cn"` will sort users search results based on the “cn” (Common Name) attribute. NOTE: Sorting can be performed only on indexed attributes. This is optional parameter and it can be set to null if sorting is not required.

<b>Signature:</b>

```typescript
sort?: string;
```
