1.0.4 • Published 3 years ago

ffsort v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

logo

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

npm install ffsort --save

Example

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.

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago