Skip to content

Commit 341d641

Browse files
committed
Editorial: drop mention of stability from Array.prototype.sort introduction
1 parent e901359 commit 341d641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39711,7 +39711,7 @@ <h1>Array.prototype.some ( _callback_ [ , _thisArg_ ] )</h1>
3971139711

3971239712
<emu-clause id="sec-array.prototype.sort" oldids="sec-sortcompare">
3971339713
<h1>Array.prototype.sort ( _comparator_ )</h1>
39714-
<p>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_ &lt; _y_, a positive Number if _x_ > _y_, or a zero otherwise.</p>
39714+
<p>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_ &lt; _y_, a positive Number if _x_ > _y_, or a zero otherwise.</p>
3971539715
<p>It performs the following steps when called:</p>
3971639716
<emu-alg>
3971739717
1. [id="step-array-sort-comparefn"] If _comparator_ is not *undefined* and IsCallable(_comparator_) is *false*, throw a *TypeError* exception.

0 commit comments

Comments
 (0)