# sort-array-devfox

> Sorting Array by order and case sensitivity

Latest version **0.0.5** (published 2019-06-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install sort-array-devfox
pnpm add sort-array-devfox
yarn add sort-array-devfox
bun add sort-array-devfox
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2019-06-17 |
| First published | 2019-06-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bernhard Fuchs |
| Maintainers | devfox |

## Links

- npm: https://www.npmjs.com/package/sort-array-devfox
- npm.io page: https://npm.io/package/sort-array-devfox

## Recent versions

- 0.0.5 (latest) — 2019-06-17
- 0.0.4 — 2019-06-17
- 0.0.3 — 2019-06-17
- 0.0.2 — 2019-06-17
- 0.0.1 — 2019-06-17

## README

# Sort string arrays

## Installation

`npm install sort-array-devfox`

## Usage

`sortStrings(stringArray: string[], options?: SortingOptions)`

Possible Options:

- `orderBy` which can take `"asc"` or `"desc"`
- `isCaseSensitive` which can be `true` or `false`

Default options are `{ orderBy: "asc", isCaseSensitive: false }`

**Case Sensitivity:**  
Given an Array `["Za", "ma", "Ba", "aa"]`

- with case sensitive `true` => `["Ba", "Za", "aa", "ma"]`
- with case sensitive `false` => `["aa", "Ba", "ma", "Za"]`

For more usage details see the [Unit Tests](https://github.com/BernhardFuchs/sort-array-module/blob/master/src/index.spec.ts)

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