Skip to content

Commit c33bc5f

Browse files
committed
Optionally order when iterating on _nesting-key_ in Expansion Algorithm step 14.
For #295.
1 parent a5604fa commit c33bc5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3005,7 +3005,8 @@ <h3>Algorithm</h3>
30053005
</li>
30063006
</ol>
30073007
</li>
3008-
<li id="alg-expand-resolve-nest" class="changed">For each key <var>nesting-key</var> in <var>nests</var>
3008+
<li id="alg-expand-resolve-nest" class="changed">For each key <var>nesting-key</var> in <var>nests</var>,
3009+
ordered lexicographically if {{JsonLdOptions/ordered}} is <code>true</code>:
30093010
<ol>
30103011
<li>Initialize <var>nested values</var> to the value of <var>nesting-key</var>
30113012
in <var>element</var>, ensuring that it is an <a>array</a>.</li>
@@ -7013,6 +7014,9 @@ <h2>Changes since Candidate Release of 12 December 2019</h2>
70137014
<li>Improved text in step <a href="#alg-expand-container-mapping-type">13.8.3.7.5</a>
70147015
to exclude the <var>expanded index</var> being `@none`.
70157016
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/264">Issue 264</a>.</li>
7017+
<li>Update step <a href="#alg-expand-resolve-nest">14</a>
7018+
to order by <var>nesting-key</var>, if `ordered` is `true`.
7019+
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/295">Issue 295</a>.</li>
70167020
<li>Move step 13.15 of the expansion algorithm up one level to step <a href="#alg-expand-resolve-nest">14</a>,
70177021
as it had accidentally been set to run for every entry in the object, rather than
70187022
after all entries had been expanded.

0 commit comments

Comments
 (0)