When I switch from tsi gen1 to tsi gen2, I found that the timestamps data in the getEvents API returned result is not strictly sorted. How do I add a sort field to tsigen2? Can anyone give some suggestions?
post url : https://xxxxx.env.timeseries.azure.com/timeseries/query?api-version=2020-07-31
result sample:
"timestamps": [
"2021-02-20T00:00:23Z",
"2021-02-20T00:01:23Z",
"2021-02-20T00:02:23Z",
"2021-02-20T00:03:23Z",
......
"2021-02-20T23:57:28Z",
"2021-02-20T23:58:28Z",
"2021-02-20T23:59:28Z",
"2021-02-21T00:00:28Z",
"2021-02-21T00:01:28Z",
"2021-02-21T00:02:28Z",
"2021-02-21T00:03:28Z",
......
"2021-02-21T09:39:30Z",
"2021-02-21T09:40:30Z",
"2021-02-21T09:41:30Z",
"2021-02-21T09:42:30Z",
"2021-02-23T04:28:44Z",
"2021-02-23T04:29:44Z",
"2021-02-23T04:30:44Z",
"2021-02-23T04:31:44Z",
......
"2021-02-23T23:53:47Z",
"2021-02-23T23:54:47Z",
"2021-02-23T23:55:47Z",
"2021-02-23T23:56:47Z",
"2021-02-23T23:57:47Z",
"2021-02-23T23:58:47Z",
"2021-02-23T23:59:47Z",
"2021-02-21T09:43:30Z",
"2021-02-21T09:44:30Z",
"2021-02-21T09:45:30Z",
"2021-02-21T09:46:30Z",
"2021-02-21T09:47:30Z",
"2021-02-21T09:48:30Z",
......
"2021-02-21T23:56:32Z",
"2021-02-21T23:57:32Z",
"2021-02-21T23:58:32Z",
"2021-02-21T23:59:32Z",
"2021-02-22T00:00:32Z",
"2021-02-22T00:01:32Z",
"2021-02-22T00:02:32Z",
"2021-02-22T00:03:32Z",
"2021-02-22T00:04:32Z",
"2021-02-22T09:01:33Z",
......
"2021-02-22T23:57:43Z",
"2021-02-22T23:58:43Z",
"2021-02-22T23:59:43Z",
"2021-02-23T00:00:43Z",
"2021-02-23T00:01:43Z",
"2021-02-23T00:02:43Z",
"2021-02-23T00:03:43Z",
"2021-02-23T00:04:43Z",
......
"2021-02-23T04:25:44Z",
"2021-02-23T04:26:44Z",
"2021-02-23T04:27:44Z"
],
...... represents the omitted data, in the correct order