What is the stability of the Array.sort() method in different browsers?

后端 未结 4 532
广开言路
广开言路 2020-11-22 12:15

I know that the ECMA Script specification does not specify which algorithm to use for sorting arrays, nor does it specify whether the sort should be stable.

I\'ve fo

4条回答
  •  感情败类
    2020-11-22 13:08

    As of V8 v7.0 and Chrome 70, our Array.prototype.sort implementation is now stable.

提交回复
热议问题