docs-v2/content/influxdb/cloud/query-data/flux/sort-limit.md

752 B

title seotitle list_title description influxdb/cloud/tags menu weight related list_query_example
Sort and limit data with Flux Sort and limit data in InfluxDB with Flux Sort and limit Use the [`sort()`function](/influxdb/cloud/reference/flux/stdlib/built-in/transformations/sort) to order records within each table by specific columns and the [`limit()` function](/influxdb/cloud/reference/flux/stdlib/built-in/transformations/limit) to limit the number of records in output tables to a fixed number, `n`.
sort
limit
influxdb_cloud
name parent
Sort and limit Query with Flux
203
/{{< latest "flux" >}}/stdlib/universe/sort
/{{< latest "flux" >}}/stdlib/universe/limit
sort_limit

{{< duplicate-oss >}}