Description of problem:
sort algorithm changed from node 10 and in chrome v70 from quicksort to timsort: https://v8.dev/blog/array-sort
The nav sort util `sortExtensionItems` works with quicksort but fails with timsort.
Prerequisites (if any, like setup, operators/versions):
install node version >= 12
Steps to Reproduce
- `yarn test navSortUtils`
Actual results:
unit test failure:
Expected results:
no unit test failure
Reproducibility (Always/Intermittent/Only Once):
always
Build Details:
4.7.0-0.nightly-2020-12-14-064813
Additional info:
- run test code in latest edge browser and the test also failed.
- This means that the sorting does not work as expected in the app.
- CI passes because it uses node 10 I believe.