npm.io
1.0.1 • Published 11 years ago

sort-stream

Licence
MIT
Version
1.0.1
Deps
1
Vulns
0
Weekly
0
Stars
8

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