Merge pull request #7956 from ahocevar/sort-index

Make sure namespaces are populated after they were created
This commit is contained in:
Andreas Hocevar
2018-03-09 15:59:12 +01:00
committed by GitHub

View File

@@ -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');
}