Skip to content

Commit 59979a1

Browse files
authored
Editorial: use Infra sorting for URLSearchParams's sort()
1 parent cc8b776 commit 59979a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

url.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4061,9 +4061,9 @@ sorted.sort()</code></pre>
40614061
<p>The <dfn method for=URLSearchParams><code>sort()</code></dfn> method steps are:
40624062

40634063
<ol>
4064-
<li><p>Sort all <a for=/>tuples</a> in <a>this</a>'s <a for=URLSearchParams>list</a>, if any, by
4065-
their names. Sorting must be done by comparison of code units. The relative order between
4066-
<a for=/>tuples</a> with equal names must be preserved.
4064+
<li><p>Set <a>this</a>'s <a for=URLSearchParams>list</a> to the result of
4065+
<a for=list>sorting in ascending order</a> <a>this</a>'s <a for=URLSearchParams>list</a>,
4066+
with |a| being less than |b| if |a|'s name is <a>code unit less than</a> |b|'s name.
40674067

40684068
<li><p><a for=URLSearchParams>Update</a> <a>this</a>.
40694069
</ol>

0 commit comments

Comments
 (0)