+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "sortThresholds"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## sortThresholds() function

### sortThresholds() function

Sorts the thresholds

<b>Signature</b>

```typescript
export declare function sortThresholds(thresholds: Threshold[]): Threshold[];
```
<b>Import</b>

```typescript
import { sortThresholds } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  thresholds | <code>Threshold[]</code> |  |

<b>Returns:</b>

`Threshold[]`

