Skip to content

aeharding/timeout-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timeout-sort

Timeout sort is an asynchronous integer sorting algorithm. It can sort all integers (+ & -) with O(max(abs(input))+n).

var timeoutSort = require("timeout-sort");

// callback form
timeoutSort([5, 20, 642, -80], function cbSort(sortedArray, err) {
  if (err) console.log("You suck!");
  console.log(sortedArray);
});

// promise form
timeoutSort([5, 20, 642, -80]).then(function resolvedWithSort(sortedArray) {
  console.log(sortedArray);
});

Development

npm install -g mocha coffee-script

then

npm start (to compile)

npm test

About

Timeout sort is an asynchronous integer sorting algorithm. It can sort all integers with O(max(input)+n).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published