Skip to content

Conversation

@charris
Copy link
Member

@charris charris commented Oct 10, 2021

Backport of #19607.

In #12658 and #15068 the sort ordering for datetime and timedelta was changed
so that NaT sorts to the end, but the internal compare array function was not
updated.

Fixes #19574.

If a test should be added for this, please let me know where.

…edelta

In numpy#12658 and numpy#15068 the sort ordering for datetime and timedelta was changed
so that NaT sorts to the end, but the internal compare array function was not
updated.

Fixes numpy#19574.
I accidentally based it off the float compare template instead of the integer
compare template. It also now properly handles the case when both arguments
are NaT.
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Oct 10, 2021
@charris charris added this to the 1.21.3 release milestone Oct 10, 2021
@charris charris merged commit 222dc20 into numpy:maintenance/1.21.x Oct 10, 2021
@charris charris deleted the backport-19607 branch October 10, 2021 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants