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

[BUGFIX beta] computed.sort should not sort if sortProperties is empty #16246

Merged
merged 1 commit into from
Feb 15, 2018

Conversation

mmun
Copy link
Member

@mmun mmun commented Feb 15, 2018

Fixes #13037.
Closes #13124.

This bug only manifests when array.sort(() => 0) is not equal to array. In order for this to happen, the browser must internally be using an unstable sort and the array must be sufficient large. On Chrome, 12 items is currently sufficient. (Safari and Firefox use stable sorts so it isn't an issue there).

@rwjblue rwjblue merged commit 5d6c252 into master Feb 15, 2018
@rwjblue rwjblue deleted the fix-empty-sort-properties branch February 15, 2018 12:03
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