gulp-natural-sort

Sort stream by path name using a natural sort

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-natural-sort
1200.1.17 years ago9 years agoMinified + gzip package size for gulp-natural-sort in KB

Readme

gulp-natural-sort
Build Status
>Sort stream by path name using a natural sort

Installation

npm install --save-dev gulp-natural-sort

Usage

To reorder stream in ascending order:
return gulp.src(path.join(paths.tutorials, folder, 'markdown/*.md'))
  .pipe(naturalSort())
  .pipe(gulp.dest(paths.output));

To reorder stream in descending order pass the string 'desc':
.pipe(naturalSort('desc'))

License

MIT