File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,10 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
616
616
filter ( b => b . variants . length > 0 ) ;
617
617
618
618
const largestChange = a => Math . max ( Math . abs ( a . minPct ) , Math . abs ( a . maxPct ) ) ;
619
+ // Sort by name first, so that there is a canonical ordering
620
+ // of benches. This ensures the overall order is stable, even if
621
+ // individual benchmarks have the same largestChange value.
622
+ benches . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) ;
619
623
benches . sort ( ( a , b ) => largestChange ( b ) - largestChange ( a ) ) ;
620
624
621
625
return benches ;
@@ -819,4 +823,4 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
819
823
</ script >
820
824
</ body >
821
825
822
- </ html >
826
+ </ html >
You can’t perform that action at this time.
0 commit comments