Javascript – How to write array sort polyfill using merge sort approach
I was trying to write a Polyfill for array sorting in javascript. However it turns out that the comparator doesn't cause any effect on the Polyfill. Any ideas how to make it work? const arrA = [2, 3, 4, 1,…