From a964dd27e9147580be7a49647e19a0b1f7a008bb Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 9 Mar 2018 15:48:31 +0100 Subject: [PATCH] Make sure namespaces are populated after they were created --- tasks/generate-index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/generate-index.js b/tasks/generate-index.js index dc02268697..057a735161 100644 --- a/tasks/generate-index.js +++ b/tasks/generate-index.js @@ -103,7 +103,7 @@ function generateExports(symbols, namespaces, imports) { nsdefs.push(`${ns[i]} = {};`); } } - blocks = imports.concat(nsdefs).concat(blocks); + blocks = imports.concat(nsdefs.sort()).concat(blocks.sort()); blocks.push(''); return blocks.join('\n'); }