Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

erickmerchant/static-engine-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A plugin for static-engine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published