BFE.dev
Front-End Interview Questions134. is Array.prototype.sort() stable in JavaScript?

134. is Array.prototype.sort() stable in JavaScript?

JavaScript
Share

ECMAScript Spec requires Array.prototype.sort() to be stable, but actually Chrome V8 only made it stable in 2018, 10 years after the issue was reported.

The detail of what algorithm is used in V8 is worth well reading.

prevnext
Request SolutionAIPosts(2)