Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort: Document NaN behavior for Float64s #20540

btracey opened this issue May 31, 2017 · 1 comment

sort: Document NaN behavior for Float64s #20540

btracey opened this issue May 31, 2017 · 1 comment


Copy link

@btracey btracey commented May 31, 2017

The current documentation for sort.Float64s is Float64s sorts a slice of float64s in increasing order. The documentation should be increased to describe the behavior of NaN (which is currently that NaN is less than all NaN values). If this current behavior cannot be relied on, then the documentation should reflect that NaN sorting is not specified.

Copy link

@gopherbot gopherbot commented May 31, 2017

CL mentions this issue.

@gopherbot gopherbot closed this in 4c96ff4 May 31, 2017
gopherbot pushed a commit that referenced this issue Jun 1, 2017
Updates #20540

Change-Id: I864008fadd77b0aeb10fe7e7f1ec696516a5add5
Reviewed-by: Robert Griesemer <>
@golang golang locked and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.