Closed jedrus2000 closed 2 years ago
This issue is well mentioned here : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#sorting_with_non-well-formed_comparator
It causes all tests to fail in Node 11, 12, 13, 14 etc. However, on Node 10 it works good.
Look at the problem below (same comparison is used in this project)
Code :
On Node 10 sorting is as expected.
I will do PR shortly with fix.
This issue is well mentioned here : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#sorting_with_non-well-formed_comparator
It causes all tests to fail in Node 11, 12, 13, 14 etc. However, on Node 10 it works good.
Look at the problem below (same comparison is used in this project)
Code :
On Node 10 sorting is as expected.
I will do PR shortly with fix.