knapsack icon indicating copy to clipboard operation
knapsack copied to clipboard

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

Open educastellano opened this issue 4 years ago • 0 comments

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).

educastellano avatar Nov 27 '19 12:11 educastellano