Skip to content

Commit c614592

Browse files
harp-intelCopilot
andauthored
Update internal/report/render_html.go
Co-authored-by: Copilot <[email protected]>
1 parent 84b112b commit c614592

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/report/render_html.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,9 +1369,11 @@ func c6TelemetryTableHTMLRenderer(tableValues TableValues, targetName string) st
13691369
return telemetryTableHTMLRenderer(tableValues, data, datasetNames, chartConfig)
13701370
}
13711371

1372-
// instructionTelemetryTableHTMLRenderer renders instruction set usage statistics
1372+
// instructionTelemetryTableHTMLRenderer renders instruction set usage statistics.
13731373
// Each category is a separate dataset within the chart.
13741374
// Categories with zero total usage are hidden by default.
1375+
// Categories are sorted in two tiers: first, all non-zero categories are sorted alphabetically;
1376+
// then, all zero-sum categories are sorted alphabetically and placed after the non-zero categories.
13751377
func instructionTelemetryTableHTMLRenderer(tableValues TableValues, targetname string) string {
13761378
// Collect entries with their sums so we can sort per requirements
13771379
type instrEntry struct {

0 commit comments

Comments
 (0)