Skip to content

tristanls/node-bubble-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bubble-sort

Stability: 1 - Experimental

Bubble sort.

Usage

var bubbleSort = require('bubble-sort');
...
var ascending  = bubbleSort(array);        // sort ascending
var descending = bubbleSort(array, false); // sort descending