For some reason when i execute the following flux query, the results are not sorted in order of timestamp:
from(bucket: "my_bucket"
|> range(start: -10y, stop: now())
|> filter(fn: (r) => r._measurement == "m" and r._field == "temperature" and exists r._value)
|> keep( columns: ["_time"])
Whitness the following snippet of the data:
Why isn’t the data sorted?
Apparently influxdb doesn’t sort the data when it is ingested.