Unix sort written in highland.
npm install highland-unix-sortA rewrite of https://github.com/Clever/unix-sort that uses Highland.
This performs a sort using the unix sort command.
npm install highland-unix-sort
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' } ]