From ES2019, browsers must use a stable sorting algorithm.
When sorting elements on a key, the elements must keep their relative position to other objects with the same key.