aqsort
Asynchronous qsort implemented in JavaScript
Last updated 6 years ago by luin .
MIT · Original npm · Tarball · package.json
$ cnpm install aqsort 
SYNC missed versions from official npm registry.

AsyncQsort

An implementation of asynchronous quicksort in JavaScript

Build Status

Install

$ npm install aqsort

Usage

var aqsort = require('aqsort');

aqsort([1, 9, 3, 7], function(a, b, callback) {
  if (a > b) { callback(null, 1); }
  else if (a === b) { callback(null, 0); }
  else { callback(null, -1); }
}, function(err, res) {
  // res === [1, 3, 7, 9]
});

Current Tags

  • 1.1.0                                ...           latest (6 years ago)

3 Versions

  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |