say I have an array that I want to sort, that a certain element will be first, and leave the rest the way it is.
for example [1,2,3,4] and I want the 2 to be at the beginning of the array
[1,2,3,4].sort((a,b)=> a == 2 ? -1 : 0)
in chrome the output is as expected
// chrome
[2,1,3,4]
but in Firefox the output is different and the 2 is not first
// firefox
[1,2,3,4]
2.sortdifferent outcomes can and will happen.