From 8a7c3bb3debf8efabed24866e8aedc7bfe2e44e4 Mon Sep 17 00:00:00 2001 From: Rainer Hahnekamp Date: Thu, 12 Sep 2024 18:14:05 +0200 Subject: [PATCH] fix: sonarqube issues --- packages/core/src/lib/api/get-project-data.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/lib/api/get-project-data.ts b/packages/core/src/lib/api/get-project-data.ts index b0aaceb..09d0ed9 100644 --- a/packages/core/src/lib/api/get-project-data.ts +++ b/packages/core/src/lib/api/get-project-data.ts @@ -150,7 +150,9 @@ export function getProjectData( }; if (options.includeExternalLibraries) { - entry.externalLibraries = [...fileInfo.getExternalLibraries()].sort(); + entry.externalLibraries = [...fileInfo.getExternalLibraries()].sort( + (a, b) => a.localeCompare(b), + ); } data[fileInfo.path] = entry;