An open API service indexing awesome lists of open source software.

https://github.com/chausme/simple-bubble-sort

Simple bubble sort algorithm implementation
https://github.com/chausme/simple-bubble-sort

algorithm algorithms javascript sort sorting

Last synced: 6 months ago
JSON representation

Simple bubble sort algorithm implementation

Awesome Lists containing this project

README

          

# Simple Bubble Sort

[![npm](https://img.shields.io/npm/v/simple-bubble-sort.svg?style=flat-square)](https://www.npmjs.com/package/simple-bubble-sort)

Simple bubble sort algorithm implementation

# Install

```bash
npm install simple-bubble-sort
yarn add simple-bubble-sort
```

# Usage

```javascript
import bubbleSort from 'simple-bubble-sort';
const sorted = bubbleSort([10, 2, 5, 99, 7, 0]); // [0, 2, 5, 7, 10, 99]
```