<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SearchMutations](./x-components.searchmutations.md) &gt; [setSort](./x-components.searchmutations.setsort.md)

## SearchMutations.setSort() method

Sets the selected sort option of the module.

**Signature:**

```typescript
setSort(sort: Sort): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  sort | Sort | The new sort. |

**Returns:**

void

