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

As of ES2019, sort is required to be stable. In ECMAScript 1st edition through ES2018, it was allowed to be unstable. Simple test case (ignore the heading, second set of numbers should be sequential if the engine’s sort is stable). Note: This test case doesn’t work for some versions of Chrome (technically, of V8) that … Read more

tech