+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "sortDataFrame" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## sortDataFrame() function ### sortDataFrame() function Signature ```typescript export declare function sortDataFrame(data: DataFrame, sortIndex?: number, reverse?: boolean): DataFrame; ``` Import ```typescript import { sortDataFrame } from '@grafana/data'; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | data | DataFrame | | | sortIndex | number | | | reverse | boolean | | Returns: `DataFrame`