This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datasortThresholds

sortThresholds() function

sortThresholds() function

Sorts the thresholds

Signature

export declare function sortThresholds(thresholds: Threshold[]): Threshold[];

Import

import { sortThresholds } from '@grafana/data';

Parameters

Parameter Type Description
thresholds Threshold[]

Returns:

Threshold[]