ember-table icon indicating copy to clipboard operation
ember-table copied to clipboard

Consider using built-in Array.sort instead of custom mergeSort

Open bantic opened this issue 6 years ago • 1 comments

Ember Table uses a custom mergeSort implementation in order to provide a stable sort. It does so because at the time the code was written, built-in Array.prototype.sort was not stable.

As of late 2018 all major browser engines have a stable sort and it is also part of the Ecmascript spec: https://github.com/tc39/ecma262/pull/1340.

Perhaps it's time to consider removing our custom mergeSort.

bantic avatar Jul 29 '19 15:07 bantic

Does IE11 too?

ctjhoa avatar Sep 07 '19 08:09 ctjhoa