fix(ui): sort compliance overview by name (#9422)

This commit is contained in:
Pedro Martín
2025-12-03 15:37:55 +01:00
committed by GitHub
parent f58c1fddfb
commit cb3f3ab35d
2 changed files with 4 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ All notable changes to the **Prowler UI** are documented in this file.
### 🐞 Fixed
- Models list in Lighthouse selector when default model is not set for provider [(9402)](https://github.com/prowler-cloud/prowler/pull/9402)
- Sort compliance cards by name from the compliance overview [(9422)](https://github.com/prowler-cloud/prowler/pull/9422)
---

View File

@@ -235,6 +235,9 @@ const SSRComplianceGrid = async ({
// Filter out ProwlerThreatScore from the grid
return compliance.attributes.framework !== "ProwlerThreatScore";
})
.sort((a: ComplianceOverviewData, b: ComplianceOverviewData) =>
a.attributes.framework.localeCompare(b.attributes.framework),
)
.map((compliance: ComplianceOverviewData) => {
const { attributes, id } = compliance;
const {