MinMax not consistent with queryTagHistory

When I make a request using queryTagHistory and set aggregation mode to MinMax, the order or min and max are not consistent.

As you can see in the export below, in some timestamps the Max value is first, in others Min is first.

image

What happens when you use returnSize = 1?

I only get one min max for the entire range instead of each interval.