Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Fix the return value in the sort() function to follow the standard #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

educastellano
Copy link

The sort() function that's called after filtering the items was returning a boolean instead of 1, -1 or 0 as it is specified in the standard. It happens to work in some versions of NodeJS and Firefox but not Chrome (the versions I tried at least).

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

Successfully merging this pull request may close these issues.

1 participant