Sort the files in component-index

Fixes https://github.com/vector-im/vector-web/issues/1352
This commit is contained in:
Richard van der Hoff 2016-04-20 17:59:11 +01:00
parent 37365728cb
commit 267bf10e69

View File

@ -37,7 +37,7 @@ if (packageJson['matrix-react-parent']) {
strm.write("module.exports.components = {};\n");
}
var files = glob.sync('**/*.js', {cwd: componentsDir});
var files = glob.sync('**/*.js', {cwd: componentsDir}).sort();
for (var i = 0; i < files.length; ++i) {
var file = files[i].replace('.js', '');