Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
dont change array sort behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
acutmore committed Jul 27, 2022
1 parent a056bb3 commit 60823eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Array.prototype.sort ( _comparefn_ )</h1>
1. <ins>Let _itemCount_ be the number of elements in _sortedList_.</ins>
1. <ins>Let _j_ be 0.</ins>
1. <ins>Repeat, while _j_ &lt; _itemCount_,</ins>
1. <ins>Perform ? CreateDataPropertyOrThrow(_obj_, ! ToString(𝔽(_j_)), _sortedList_[_j_]).</ins>
1. <ins>Perform ? Set(_obj_, ! ToString(𝔽(_j_)), _sortedList_[_j_], true).</ins>
1. <ins>Set _j_ to _j_ + 1.</ins>
1. <ins>NOTE: The call to SortIndexedProperties in step <emu-xref href="#step-array-sortindexedproperties"></emu-xref> has the *skipHoles* parameter set to *true*. The remaining indexes are deleted to preserve the number of holes that were detected and excluded from the sort.</ins>
1. <ins>Repeat, while _j_ &lt; _len_,</ins>
Expand Down

0 comments on commit 60823eb

Please sign in to comment.