diff --git a/Gruntfile.js b/Gruntfile.js
index <HASH>..<HASH> 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -101,7 +101,8 @@ module.exports = function(grunt) {
                     filename: 'esp-js.min.js'
                 },
                 plugins: [
-                    new webpack.optimize.UglifyJsPlugin({minimize: true})
+                    new webpack.optimize.UglifyJsPlugin({minimize: true}),
+                    new webpack.optimize.OccurenceOrderPlugin(true)
                 ]
             }
         },
Consistent ordering of modules, should make PR merges much less noisy