5 ms·
V8 unit test for .sort() explains the behavior as... > Default sort converts each element to string and orders lexicographically. https://chromium.googlesourc
by cj 6y ago
V8 unit test for .sort() explains the behavior as...
> Default sort converts each element to string and orders lexicographically.
https://chromium.googlesource.com/v8/v8/+/4.3.18/test/mjsunit/array-sort.js?autodive=0%2F%2F%2F%2F#36 https://chromium.googlesource.com/v8/v8/+/4.3.18/test/mjsuni...
- mirkules 6y ago“You’re using it wrong” is a poor argument for undesired/unexpected behavior (aka, a bug).
- cj 6y agoI actually stumbled across the V8 link while looking to see if there were a bug logged for this behavior somewhere. I agree it seems like a bug. I'm definitely not saying "You're using it wrong".
- mirkules 6y agoOh, I was not insinuating you were. I was directing my comment into the V8 developers’ direction