so, today we found out sort()ing things with the same value can lead to a different result in firefox and chrome (which is fair), but in our case – due to a logic bug down the line, that was not triggered in chrome – it lead to a pretty bad mistake in firefox.
always keep in mind that "works in $browser" does not mean your code is correct.