# sort-x

> JavaScript to achieve the ten common sorting algorithm library

Latest version **0.0.7** (published 2018-04-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2018-04-10 |
| First published | 2018-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 135.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | c.xin |
| Maintainers | c.xin |

## Links

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

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.5

## Recent versions

- 0.0.7 (latest) — 2018-04-10
- 0.0.6 — 2018-04-10
- 0.0.5 — 2018-03-26
- 0.0.4 — 2018-03-06
- 0.0.3 — 2018-03-05
- 0.0.2 — 2018-03-05
- 0.0.1 — 2018-03-05

## README

# sort-x

![](https://travis-ci.org/kindfarmer/sort-x.svg?branch=master)
![codecov](https://codecov.io/gh/kindfarmer/sort-x/branch/master/graph/badge.svg)

### Install
Npm: `npm install --save sort-x`

Yarn: `yarn add sort-x`

Umd:
```html
<script src="path/sort-x/dist/index.js"></script>
```

```js
sortX.bubble([3, 4, 2, 1]) // [1, 2, 3, 4]
sortX.selection([3, 4, 2, 1]) // [1, 2, 3, 4]
```

### Demo

```js
import {bubble} from 'sort-x';
// In your render...
bubble([3, 4, 2, 1]) // [1, 2, 3, 4]


import {selection} from 'sort-x';
// In your render...
selection([3, 4, 2, 1]) // [1, 2, 3, 4]

import {insertion} from 'sort-x';
// In your render...
insertion([3, 4, 2, 1]) // [1, 2, 3, 4]

ex: 
```

### Util

```js
import {sorted} from 'sort-x';
sorted([3, 4, 2, 1]) // false
sorted([1, 2, 3, 4]) // true
```

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