gulp-natural-sort
v0.1.1
Published
Sort stream by path name using a natural sort
Downloads
4,869
Maintainers
Readme
gulp-natural-sort
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