Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

b-sort

alkuhar1MIT1.0.0

Sorts an array of numbers using bubble sort

readme

b-sort

Sorts an array of numbers using bubble sort.

Installation

npm install --save b-sort

Usage

var sort = require('b-sort');

sort([1,2,3,1,2,3]) // [ 1, 1, 2, 2, 3, 3 ]
sort([6,5,3,2,1,0]) // [ 0, 1, 2, 3, 5, 6 ]