diff --git a/spec.html b/spec.html index 8035108d91..83ad94623b 100644 --- a/spec.html +++ b/spec.html @@ -39739,7 +39739,7 @@

Array.prototype.some ( _callback_ [ , _thisArg_ ] )

Array.prototype.sort ( _comparator_ )

-

This method sorts the elements of this array. The sort must be stable (that is, elements that compare equal must remain in their original order). If _comparator_ is not *undefined*, it should be a function that accepts two arguments _x_ and _y_ and returns a negative Number if _x_ < _y_, a positive Number if _x_ > _y_, or a zero otherwise.

+

This method sorts the elements of this array. If _comparator_ is not *undefined*, it should be a function that accepts two arguments _x_ and _y_ and returns a negative Number if _x_ < _y_, a positive Number if _x_ > _y_, or a zero otherwise.

It performs the following steps when called:

1. [id="step-array-sort-comparefn"] If _comparator_ is not *undefined* and IsCallable(_comparator_) is *false*, throw a *TypeError* exception.