Script API Sort Methods Are Stable
As required by ECMAScript 2019, the B2C Commerce Script API methods Array.sort() and Array.sort(function) are now documented as stable, so equal elements arenβt reordered as a result of the sort.
As required by ECMAScript 2019, the B2C Commerce Script API methods Array.sort() and Array.sort(function) are now documented as stable, so equal elements arenβt reordered as a result of the sort.