fix(ui): sort headers alphabetically in diagram detail panel
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m1s
CI / docker (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / deploy-feature (push) Has been cancelled

This commit is contained in:
hsiegeln
2026-03-28 15:05:47 +01:00
parent 4296d41cad
commit 77d871c4f8

View File

@@ -18,7 +18,7 @@ function parseHeaders(json: string | undefined): Record<string, string> {
}
function HeaderTable({ headers }: { headers: Record<string, string> }) {
const entries = Object.entries(headers);
const entries = Object.entries(headers).sort(([a], [b]) => a.localeCompare(b));
if (entries.length === 0) {
return <div className={styles.emptyState}>No headers</div>;
}