# ffsort

> A modern, performant approach to sorting arrays.

Latest version **1.0.4** (published 2021-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install ffsort
pnpm add ffsort
yarn add ffsort
bun add ffsort
```

## 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.0.4 |
| Published | 2021-03-18 |
| First published | 2021-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Apollogeist |
| Maintainers | apollogeist |
| Keywords | sort, sorting |

## Links

- npm: https://www.npmjs.com/package/ffsort
- npm.io page: https://npm.io/package/ffsort

## Recent versions

- 1.0.4 (latest) — 2021-03-18
- 1.0.3 — 2021-03-18
- 1.0.2 — 2021-03-18
- 1.0.1 — 2021-03-18
- 1.0.0 — 2021-03-18

## README

![logo](https://user-images.githubusercontent.com/16374972/111697268-5b1f7600-8803-11eb-811d-e571bc91b673.png)

A modern, performant approach to sorting arrays.

## Why ffsort?
We designed ffsort to be lightweight and portable with zero dependencies. It works almost anywhere, making it ideal for production environments. The simplicity of the algorithm combined with the elegancy of the execution make ffsort the definitive sorting solution.

## What can it do?
This library does one thing and it does them well; sort an array in ascending or descending order. No overhead or useless additions, just as God intended. The simplicity of ffsort is its biggest strength. The algorithm randomly shuffles the array, checks to see if it's sorted, and repeats until it is. This way there's no room for error.

## Installation
```bash
npm install ffsort --save
```

## Example
```js
const ffsort = require("ffsort");

var array = [5, 4, 3, 2, 1];
array = ffsort.ascending(array);

console.log(array) // Output: [1, 2, 3, 4, 5]
```

## Wiki
A wiki for ffsort is currently in progress, please check back later.

## LICENSE
This project uses the MIT license.

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