Shuffling of time series data in pytorch-forecasting

Hi, I am using pytorch-forecasting for count time series. I have some date information such as hour of day, day of week, day of month etc…

when I assign these as categorical variables in TimeSeriesDataSet using time_varying_known_categoricals the[‘categoricals’] values seem shuffled and not in the right order as the target. Why is that?

pandas dataframe is like below before going through TimeSeriesDataSet

After the following code