sort-stream

like array.sort, except it's a stream

npm install sort-stream
4 downloads in the last day
44 downloads in the last week
140 downloads in the last month

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)

License

MIT

npm loves you