diff --git a/main.js b/main.js
index <HASH>..<HASH> 100644
--- a/main.js
+++ b/main.js
@@ -218,6 +218,8 @@ function initExtensions(extdir, type, context, appInstance, cb) {
 
       // now to initialize
       var self = this
+      // Sort by weight
+      loaded = loaded.sort(function (a, b) { return a.ext.weight - b.ext.weight; });
 
       for (var i=0; i < loaded.length; i++) {
         var l = loaded[i];
put back in plugin ordering removed in commit <I>f<I>b<I>f5c1f7a<I>db5fe<I>e2e<I>
unbreaks tests, ok @peterbraden