JSPM

sort-stream

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 788
  • Score
    100M100P100Q93854F
  • License MIT

like array.sort, except it's a stream

Package Exports

  • sort-stream

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sort-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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