Sort and limit data with Flux |
Sort and limit data in InfluxDB with Flux |
Sort and limit |
Use the [`sort()`function](/flux/v0/stdlib/universe/sort) to order records within each table by specific columns and the [`limit()` function](/flux/v0/stdlib/universe/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 |
/flux/v0/stdlib/universe/sort |
/flux/v0/stdlib/universe/limit |
|
sort_limit |
/shared/influxdb-v2/query-data/flux/sort-limit.md |