Skip to content

fix(viewer): sort checks by name within risk levels - #1014

Open
bilaldeveloper4312 wants to merge 1 commit into
ossf:mainfrom
bilaldeveloper4312:agent/sort-checks-by-name-within-risk
Open

fix(viewer): sort checks by name within risk levels#1014
bilaldeveloper4312 wants to merge 1 commit into
ossf:mainfrom
bilaldeveloper4312:agent/sort-checks-by-name-within-risk

Conversation

@bilaldeveloper4312

Copy link
Copy Markdown

Summary

  • keep risk level as the primary viewer sort key
  • sort checks alphabetically by name within each risk category
  • preserve the existing behavior that places inconclusive checks at the bottom

Why

The risk-level comparator currently uses numeric score as its tie-breaker, so checks in the same risk category appear in an inconsistent, non-alphabetical order. Using the check name as the tie-breaker makes the result predictable while preserving the selected risk-level direction.

Fixes #430.

Verification

  • focused Node assertions cover ascending and descending risk-level ordering and confirm inconclusive checks remain last
  • git diff --check

The viewer does not currently have a dedicated unit-test suite for this inline comparator.

@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for ossf-scorecard ready!

Name Link
🔨 Latest commit 989f0f6
🔍 Latest deploy log https://app.netlify.com/projects/ossf-scorecard/deploys/6a8c269a20d90c0008bc0477
😎 Deploy Preview https://deploy-preview-1014--ossf-scorecard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bilaldeveloper4312
bilaldeveloper4312 force-pushed the agent/sort-checks-by-name-within-risk branch from e2f75bf to 789cd5c Compare August 11, 2026 15:10
@bilaldeveloper4312
bilaldeveloper4312 marked this pull request as ready for review August 13, 2026 07:10
@bilaldeveloper4312
bilaldeveloper4312 requested review from a team as code owners August 13, 2026 07:10
Signed-off-by: Muhammad Bilal Mukhtar <119035493+bilaldeveloper4312@users.noreply.github.com>
@bilaldeveloper4312
bilaldeveloper4312 force-pushed the agent/sort-checks-by-name-within-risk branch from 789cd5c to 989f0f6 Compare August 24, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewer should sort checks alphabetically within threat categories

1 participant