BFE.dev
buy us
a coffee
Codingproblems
Reactproblems
JavaScriptquizzes
Reactquizzes
TypeScriptpuzzles
CSSproblems
Interviewquestions
SystemDesign
Discussanything
buy us
a coffee

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

relax!