# static-engine-sort

> Plugin for static-engine. Sorts the collection using the provided sort function.

Latest version **4.10.2** (published 2017-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install static-engine-sort
pnpm add static-engine-sort
yarn add static-engine-sort
bun add static-engine-sort
```

## 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 | 4.10.2 |
| Published | 2017-03-01 |
| First published | 2014-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Erick Merchant |
| Maintainers | erickmerchant |
| Keywords | static-engine |

## Links

- npm: https://www.npmjs.com/package/static-engine-sort
- Repository: https://github.com/erickmerchant/static-engine-sort
- Issues: https://github.com/erickmerchant/static-engine-sort/issues
- npm.io page: https://npm.io/package/static-engine-sort

## Recent versions

- 4.10.2 (latest) — 2017-03-01
- 4.10.1 — 2016-11-23
- 4.10.0 — 2016-11-21
- 4.9.5 — 2016-08-29
- 4.9.4 — 2016-08-26
- 4.9.3 — 2016-08-09
- 4.9.2 — 2016-05-03
- 4.9.1 — 2016-02-07
- 4.9.0 — 2016-01-05
- 4.8.0 — 2016-01-01
- 4.7.0 — 2015-10-25
- 4.6.0 — 2015-10-25
- 4.5.0 — 2015-10-25
- 4.4.0 — 2015-08-04
- 4.3.2 — 2015-07-12
- … 16 more at https://npm.io/package/static-engine-sort/versions

## README

# static-engine-sort

[![Dependency Status](https://david-dm.org/erickmerchant/static-engine-sort.svg?style=flat-square)](https://david-dm.org/erickmerchant/static-engine-sort) [![devDependency Status](https://david-dm.org/erickmerchant/static-engine-sort/dev-status.svg?style=flat-square)](https://david-dm.org/erickmerchant/static-engine-sort#info=devDependencies) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

This is a plugin for [static-engine](https://github.com/erickmerchant/static-engine). Sorts the collection using the provided sort function.

```javascript
var engine = require('static-engine')
var sort = require('static-engine-sort')
var pluginA = require('plugin-a')

engine([
  pluginA,
  sort(function (a, b) {
    if (a.property < b.property) {
      return -1
    }

    if (b.property < a.property) {
      return 1
    }

    return 0
  })
])
```

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