-
-
Notifications
You must be signed in to change notification settings - Fork 915
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
Update sort function #3167
Update sort function #3167
Conversation
This comment has been minimized.
This comment has been minimized.
0297628
to
9c5880f
Compare
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
src/js/utils/common.js
Outdated
if (b.text === text) { | ||
return 1; | ||
} | ||
return a.text.localeCompare(b.text, window.navigator.language, { ignorePunctiaton: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the localeCompare
does not complain about typos :)
return a.text.localeCompare(b.text, window.navigator.language, { ignorePunctiaton: true }); | |
return a.text.localeCompare(b.text, window.navigator.language, { ignorePunctuation: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and it seems to work, strange ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose simply ignores the parameter, and not ignores de punctuation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9c5880f
to
046b34f
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Do you want to test this code? Here you have an automated build: |
Use
JQuery
instead ofQuerySelector