1.0.2 • Published 6 years ago

pull-sort v1.0.2

Weekly downloads
1,275
License
MIT
Repository
github
Last release
6 years ago

pull-sort

sort a pull-stream, necessarily, this buffers the stream and then streams the sorted stream.

example

var Sort = require('pull-sort')
var pull = require('pull-stream/pull')

pull(
  source,
  Sort(compare),
  sink
)

Sort takes an optional comparitor, the same signature as Array#sort

License

MIT