sort-stream

like array.sort, except it's a stream

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sort-stream
801.0.18 years ago10 years agoMinified + gzip package size for sort-stream in KB

Readme

sort-stream
like Array.sort but a stream.
var sort = require('sort-stream')

input.pipe(sort(function (a, b) {
  //comparator function, return 1, 0, or -1
  //just like Array.sort
})).pipe(output)

see also: sort-stream2 (samething, but with streams2)

License

MIT