winterbe / compary

A library for composing complex compare-functions in JavaScript

Home Page:https://winterbe.github.io/compary/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compary Travic CI

A library for composing complex compare-functions.

persons.sort(
    compareBy(p => p.lastName)
        .thenBy(p => p.firstName)
);

★★★ Like this project? Leave a star and feedback on Twitter! Thanks. ★★★


Getting started

Download the latest release from GitHub or install Compary from NPM:

npm install --save compary

Alternatively use Compary from CDN by adding this to your HTML:

<script src="https://unpkg.com/compary"></script>

License

MIT © Benjamin Winterberg

About

A library for composing complex compare-functions in JavaScript

https://winterbe.github.io/compary/

License:MIT License


Languages

Language:TypeScript 83.0%Language:JavaScript 17.0%