This code uses its own method Array.prototype.sort, which is described in section 22.1.3.24 of the ECMAScript standard. This method takes a single comparefn argument:
comparefn undefined, , x y , x < y, , x = y , x > y. ( )
, , -1, 0, 1. , , , , , .
Microsoft Edge , ( ), Edge , , Edge .
Edge .