sort-stream
like array.sort, except it's a stream
Last updated 6 years ago by dominictarr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sort-stream 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (6 years ago)

2 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           7 years ago

Copyright 2014 - 2017 © taobao.org |