We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12f794b commit d8de96cCopy full SHA for d8de96c
scripts/plot_metrics.ts
@@ -16,10 +16,12 @@ function plotMetrics() {
16
counter.set(call, (counter.get(call) ?? 0) + 1);
17
}
18
19
- const data = Array.from(counter.entries()).map(([key, value]) => ({
20
- key,
21
- value,
22
- }));
+ const data = Array.from(counter.entries())
+ .map(([key, value]) => ({
+ key,
+ value,
23
+ }))
24
+ .sort((a, b) => a.key.localeCompare(b.key));
25
const totalRuns = data.reduce((acc, item) => acc + item.value, 0);
26
27
type Item = { key: string; value: number };
0 commit comments