diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index c14c30ffe0..bd234b1ab0 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -7,6 +7,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) --- diff --git a/ui/app/(prowler)/compliance/page.tsx b/ui/app/(prowler)/compliance/page.tsx index d230a1bc41..d782441eea 100644 --- a/ui/app/(prowler)/compliance/page.tsx +++ b/ui/app/(prowler)/compliance/page.tsx @@ -234,6 +234,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 {