node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

bubble-sort

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