Skip to content

Conversation

Fil
Copy link
Member

@Fil Fil commented Aug 5, 2021

There is a surprise with the handling of undefined in sort:

d3.sort([undefined, null]);           // [null, undefined]
d3.sort([undefined, null], (d) => d); // [undefined, null]

I think we can live with that (fixing it is probably too costly, and for what purpose…), but I documented it in a unit test.

@Fil Fil requested a review from mbostock August 5, 2021 09:29
@Fil Fil mentioned this pull request Aug 5, 2021
@mbostock mbostock merged commit 67ad4f1 into mbostock/ascending-defined Aug 12, 2021
@mbostock mbostock deleted the fil/ascending-defined-refined branch August 12, 2021 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants