Closed
Description
The DatetimeIndex returns self.asi8.argsort(*args, **kwargs)
, while the DatetimeArray uses the M8[ns] values. This puts NaTs at the front for DTI and the end for DTA.
Changing the DTI method (actually the DTI/TDI/PI methods) to match their array counterparts breaks 12 tests, 11 of them resample, 1 test_grouping.