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`.
|
|
influxdb_cloud |
name |
parent |
Sort and limit |
Query with Flux |
|
|
203 |
/{{< latest "flux" >}}/stdlib/universe/sort |
/{{< latest "flux" >}}/stdlib/universe/limit |
|
sort_limit |