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

Fix for sorting in Safari #21

Closed
wants to merge 3 commits into from
Closed

Fix for sorting in Safari #21

wants to merge 3 commits into from

Conversation

ronw23
Copy link

@ronw23 ronw23 commented May 8, 2017

Array.sort comparison function takes 2 arguments, not one. Chrome and Safari exhibit different behaviours in this case with only 1 argument. This can see seen by entering
[3,2,1].sort(function(a){return -a;}) in the console of Chrome and Safari. Chrome returns [3,2,1], Safari returns [1,2,3]

@baer
Copy link
Owner

baer commented Apr 30, 2019

CLosed by #26

@baer baer closed this Apr 30, 2019
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