From 940d35ee4969c6f11884b075415a945ab2d4e119 Mon Sep 17 00:00:00 2001 From: Edy Date: Wed, 11 Apr 2012 20:51:10 +0200 Subject: [PATCH] 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) --- src/static/js/pluginfw/read-installed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pluginfw/read-installed.js b/src/static/js/pluginfw/read-installed.js index cc03b3579..7a8fb787a 100644 --- a/src/static/js/pluginfw/read-installed.js +++ b/src/static/js/pluginfw/read-installed.js @@ -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() })