# sort-stream

> like array.sort, except it's a stream

Latest version **1.0.1** (published 2014-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install sort-stream
pnpm add sort-stream
yarn add sort-stream
bun add sort-stream
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2014-12-24 |
| First published | 2013-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/sort-stream
- Repository: https://github.com/dominictarr/sort-stream
- Issues: https://github.com/dominictarr/sort-stream/issues
- npm.io page: https://npm.io/package/sort-stream

## Dependencies (1)

- [through](https://npm.io/package/through.md) ~2.3.1

## Recent versions

- 1.0.1 (latest) — 2014-12-24
- 1.0.0 — 2013-04-24

## README

# sort-stream

like `Array.sort` but a stream.

``` js
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](https://github.com/jed/sort-stream2)
(samething, but with streams2)

## License

MIT

---
_Source: https://npm.io/package/sort-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
