sort installed plugins

on some systems you cannot rely on file sorting, so plugins are loaded in different order on some systems (ubuntu vs. osx)
This commit is contained in:
Edy 2012-04-11 20:51:10 +02:00
parent eed18feed7
commit 940d35ee49

View file

@ -128,7 +128,7 @@ function readInstalled_ (folder, parent, name, reqver, depth, maxDepth, cb) {
fs.readdir(path.resolve(folder, "node_modules"), function (er, i) {
// error indicates that nothing is installed here
if (er) i = []
installed = i.filter(function (f) { return f.charAt(0) !== "." })
installed = i.sort().filter(function (f) { return f.charAt(0) !== "." })
next()
})