npm.io
1.0.2 • Published 7 years ago

pull-sort

Licence
MIT
Version
1.0.2
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
1

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