add example to group sort warning

pull/1130/head
Scott Anderson 2020-06-22 14:07:31 -06:00
parent 86fb65b0b1
commit 84daa2ec0b
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,12 @@ group()
`group()` does not guarantee the sort order of output records.
To ensure data is sorted correctly, use [`sort()`](/v2.0/reference/flux/stdlib/built-in/transformations/sort/)
after `group()`.
```js
data
|> group()
|> sort(columns: ["_time"])
```
{{% /warn %}}
## Parameters