title: How can I set the correct order of files to be concatenated with gulp-bundle-assets
body: <p>I use <strong>gulp-bundle-assets</strong> for processing my static resources. I have the next configuration in my <strong>bundle.config.js</strong>:</p>
  
  <pre><code>module.exports = {
  bundle: {
      ...
      vendor: {
          scripts: [
              './bower_components/angular/angular.js',
              './bower_components/angular-aria/angular-aria.js',
              './bower_components/angular-material/angular-material.js',
              './bower_components/angular-translate/angular-translate.js',
              './bower_components/angular-animate/angular-animate.js'
          ]
          options: {
              uglify: false,
              order: {
                  scripts: [
                      'angular.js',
                      '*.js'
                  ]
              }
          }
      }
  },
  ...
  };
  </code></pre>
  
  <p>Thus, the first script to be concatenated must be angular.js, but "options.order" doesn't work correct - the first concatenated file in the final script is angular-animate.js. So, my question is how to achieve the correct order?</p>