I’m getting odd sorting behavior in V8 7.5. Are there any known bugs?
Could you include the input, so running the code shows the surprising behavior?
-
-
That’ll take longer – it’s a lot of data. I think it’s easier if I try to fix the sorting function and then see if it works. If there are still issues, I’ll create a small repro example. Thanks for your help so far – I think your tweet put me on the right track.
-
FWIW, thinking about it this way helped me understand it better:https://twitter.com/mathias/status/1042669862663929858 …
- 3 more replies
New conversation -
-
-
And yes, it most definitely matters. Search for “consistent comparison function” in https://tc39.es/ecma262/#sec-array.prototype.sort ….
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.