Say, for example, you are building a project on Backbone or whatever and you need to load scripts in a certain order, e.g. underscore.js needs to be loaded befo
underscore.js
I just use gulp-angular-filesort
function concatOrder() { return gulp.src('./build/src/app/**/*.js') .pipe(sort()) .pipe(plug.concat('concat.js')) .pipe(gulp.dest('./output/')); }