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