-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
VSCode sorts text in xml tags incorrectly #84157
Comments
I agree this is super weird, but that is what v8 does: This can be executed in nodejs/Chrome/FF as well function sort(lang, letters) {
letters.sort(new Intl.Collator(lang).compare);
return letters;
}
console.log(sort('en', ["<members>Some_String</members>", "<members>Some_String_Long</members>", "<members>Some_String_Long_Er</members>"]));
// ["<members>Some_String_Long_Er</members>", "<members>Some_String_Long</members>", "<members>Some_String</members>"]
console.log(sort('en', ["Some_String", "Some_String_Long", "Some_String_Long_Er"]));
// ["Some_String", "Some_String_Long", "Some_String_Long_Er"] What is very interesting is that I can reproduce this in Firefox as well, so I guess that is just how sorting is defined for the English language? I also don't see what else we should do on our side. We must use the See also #70920 (comment) If you feel strongly about this, then please open an issue directly against v8 at https://bugs.chromium.org/p/v8/issues/list and link to it here. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Paste this code into a new editor:
command-a and sort lines ascending, it incorrectly reverses the order
Now paste in this code:
command-a and sort lines ascending. the correct sort order is preserved
I don't think this is a dupe of #48123 ?
The text was updated successfully, but these errors were encountered: