Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 336 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 336 Bytes

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