# sort-bubble

> A simple and fast implementation of bubble sort

Latest version **1.1.0** (published 2019-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install sort-bubble
pnpm add sort-bubble
yarn add sort-bubble
bun add sort-bubble
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-02-19 |
| First published | 2016-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Lukasz Brodowski |
| Maintainers | lukebro |
| Keywords | sort, sorting, algorithm, bubble |

## Links

- npm: https://www.npmjs.com/package/sort-bubble
- Repository: https://github.com/lukebro/sort
- Homepage: https://github.com/lukebro/sort#readme
- Issues: https://github.com/lukebro/sort/issues
- npm.io page: https://npm.io/package/sort-bubble

## Recent versions

- 1.1.0 (latest) — 2019-02-19
- 1.0.2 — 2016-07-14
- 1.0.1 — 2016-07-12

## README

## sort-bubble
Bubble sort for arrays.

Returns a sorted array, original array stays untouched.

### example
```js
import sort from 'sort-bubble'

sort([6, 2, 5, 3], function (a, b) {
	return a > b
}) // returns [2, 3, 5, 6]

sort(['hello', 'how', 'are', 'you', '?'], function (a, b) {
	return a.length > b.length
}) // returns ['?', 'how', 'are', 'you', 'hello']

```

---
_Source: https://npm.io/package/sort-bubble · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
