# make-sort-key

> Combine several strings to make one sort key

Latest version **1.0.4** (published 2016-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install make-sort-key
pnpm add make-sort-key
yarn add make-sort-key
bun add make-sort-key
```

## 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 | 2016-09-12 |
| First published | 2015-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Manuel Vila |
| Maintainers | mvila |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.4 (latest) — 2016-09-12
- 1.0.3 — 2016-03-30
- 1.0.2 — 2015-11-02
- 1.0.1 — 2015-11-02

## README

# make-sort-key [![Build Status](https://travis-ci.org/mvila/make-sort-key.svg?branch=master)](https://travis-ci.org/mvila/make-sort-key)

Combine several strings to make one sort key.

The following transformations occur:

- inputs are lowercased,
- accents are removed,
- redundant spaces are removed,
- null, undefined or empty inputs are ignored,
- finally, resulting strings are concatenated with a space separator.

## Installation

```
npm install --save make-sort-key
```

## Examples

```javascript
import makeSortKey from 'make-sort-key';

console.log(makeSortKey('Dûpont', 'Jêàn')); // => dupont jean

console.log(makeSortKey(' Apple   Computer  ')); // => apple computer

console.log(makeSortKey('', undefined, 'Apple Computer')); // => apple computer
```

## License

MIT

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