4.10.2 • Published 7 years ago

static-engine-sort v4.10.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

static-engine-sort

Dependency Status devDependency Status js-standard-style

This is a plugin for static-engine. Sorts the collection using the provided sort function.

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
  })
])
4.10.2

7 years ago

4.10.1

7 years ago

4.10.0

7 years ago

4.9.5

8 years ago

4.9.4

8 years ago

4.9.3

8 years ago

4.9.2

8 years ago

4.9.1

8 years ago

4.9.0

8 years ago

4.8.0

8 years ago

4.7.0

9 years ago

4.6.0

9 years ago

4.5.0

9 years ago

4.4.0

9 years ago

4.3.2

9 years ago

4.3.1

9 years ago

4.3.0

9 years ago

4.2.2

9 years ago

4.2.1

9 years ago

4.2.0

9 years ago

4.1.0

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago