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

Switched sort function from boolean to explicit -1 and 1 #497

Merged
merged 2 commits into from Nov 20, 2018

Conversation

jemrobinson
Copy link
Contributor

@jemrobinson jemrobinson commented Nov 19, 2018

This avoids changes in behaviour between Node.js 10.13 and Node.js 11.1, closing #496

…g failures to sort when false is evaluated as 0
Readability.js Outdated Show resolved Hide resolved
@gijsk gijsk self-assigned this Nov 19, 2018
Simplify sorting function also considering case where arguments are equal

Co-Authored-By: jemrobinson <james.em.robinson@gmail.com>
@gijsk gijsk merged commit 876c81f into mozilla:master Nov 20, 2018
@gijsk
Copy link
Contributor

gijsk commented Nov 20, 2018

Fantastic, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants