From 6d3d7b594df32801caf1fa37583c7e75d156c569 Mon Sep 17 00:00:00 2001 From: haroun <1765606+haroun@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:37:25 +0100 Subject: [PATCH] sort glob result (#4796) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Harouna Traoré --- modules/@apostrophecms/asset/lib/build/external-module-api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/@apostrophecms/asset/lib/build/external-module-api.js b/modules/@apostrophecms/asset/lib/build/external-module-api.js index 56cf9b5302..3f146a98b7 100644 --- a/modules/@apostrophecms/asset/lib/build/external-module-api.js +++ b/modules/@apostrophecms/asset/lib/build/external-module-api.js @@ -323,6 +323,7 @@ function invoke() { follow: false, absolute: false }); + files.sort((a, b) => a.localeCompare(b, 'en')); if (stats) { // optimize fs calls