Skip to content

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

Closed
anba wants to merge 1 commit into
tc39:masterfrom
anba:sortcompare-string
Closed

Use Abstract Relational Comparison to compare string values in SortCompare#315
anba wants to merge 1 commit into
tc39:masterfrom
anba:sortcompare-string

Conversation

@anba
Copy link
Copy Markdown
Contributor

@anba anba commented Jan 22, 2016

@bterlson
Copy link
Copy Markdown
Member

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

@anba
Copy link
Copy Markdown
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
Copy Markdown
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