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: node version dependent sorting #642

Merged

Conversation

bao-ho
Copy link
Collaborator

@bao-ho bao-ho commented Nov 2, 2021

Checklist

  • tests added (not relevant)
  • commits conform to the commit guidelines
  • documentation updated (not relevant)

Description

From Node11, the arguments passed to the compare function of Array.sort() are reversed.
(See: nodejs/node#24294)
Therefore the code inside the compare function should be made independent of the arguments order, so that it is independent of the node version.

@bao-ho bao-ho marked this pull request as ready for review November 2, 2021 22:41
@veinfors veinfors merged commit 81e0f69 into qlik-oss:master Nov 3, 2021
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.

4 participants