highland-unix-sort
v1.0.10
Published
Unix sort written in highland.
Downloads
21
Readme
Highland Unix Sort
A rewrite of https://github.com/Clever/unix-sort that uses Highland. This performs a sort using the unix sort command.
Install
npm install highland-unix-sort
Usage
var _ = require('highland');
var sort = require('highland-unix-sort');
_([
{name: 'sam'},
{name: 'joe'},
{},
{name: 'alice'}
])
.through(sort(['name']))
.toArray(function(arr) { console.log(array); })
// output is [ {}, { name: 'alice' }, { name: 'joe' }, { name: 'sam' } ]