From c0384ef2d390f34d1ce04234f0ef57009cb2f488 Mon Sep 17 00:00:00 2001 From: Alex Turner Date: Wed, 17 Jul 2024 14:49:58 +0000 Subject: [PATCH] Spec: allow reordering contributions before embedding in a report This should not affect functionality at all, but provides implementations with slightly more flexiblity. --- spec.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec.bs b/spec.bs index 407d7ba..3f31a36 100644 --- a/spec.bs +++ b/spec.bs @@ -672,6 +672,8 @@ null |timeout|: 1. [=set/Append=] |mergedContributions|[|n|] to |truncatedContributions|. 1. Otherwise, set |truncatedContributions| to |mergedContributions|. +1. Optionally, reorder the items of |truncatedContributions| in an + [=implementation-defined=] way. 1. Let |contributionSum| be 0. 1. [=set/iterate|For each=] |contribution| of |truncatedContributions|: 1. [=Assert=]: |contribution|["{{PAHistogramContribution/value}}"] is