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

Use Abstract Relational Comparison to compare string values in SortCompare #315

Closed
wants to merge 1 commit into from

Conversation

anba
Copy link
Contributor

@anba anba commented Jan 22, 2016

@bterlson
Copy link
Member

Bugzilla#4330 indicates that some browsers use a different comparison semantics. Which browsers? Do they still? /cc @allenwb

@anba
Copy link
Contributor Author

anba commented Jan 26, 2016

The bugzilla issue was filed in response to https://twitter.com/tobie/status/590525140091437056, but I couldn't find any difference in the default comparator implementation when comparing V8 3.28.73 and 4.1.0.14. Maybe something else changed in 4.1.0.14 which led to an observable difference in Array.prototype.sort...

@bterlson
Copy link
Member

bterlson commented Feb 4, 2016

Well in any case this seems good and is in line with implementations as far as I can tell.

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.

2 participants