# jquery-num-sort

> Sort an array from ascending or descending order

Latest version **1.0.3** (published 2020-09-26) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install jquery-num-sort
pnpm add jquery-num-sort
yarn add jquery-num-sort
bun add jquery-num-sort
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-09-26 |
| First published | 2020-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 99.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Debraj Rakshit |
| Maintainers | debraj |
| Keywords | jquery-plugin, ecosystem:jquery |

## Links

- npm: https://www.npmjs.com/package/jquery-num-sort
- Repository: https://github.com/debrajrakshit/jquery-sort-ascending-descending
- Homepage: https://github.com/debrajrakshit/jquery-sort-ascending-descending#readme
- Issues: https://github.com/debrajrakshit/jquery-sort-ascending-descending/issues
- npm.io page: https://npm.io/package/jquery-num-sort

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-09-26
- 1.0.2 — 2020-09-26
- 1.0.1 — 2020-09-26

## README

# jquery-sort-ascending-descending

# Usage:

Define arrays:
```
let arrayNum = [-99, 1.10, 20.50, 3.60, 5.10, 0, 100];
```

Sort items in *Ascending order(Numbers):
```
// Default jQuery sort() function:
console.log( arrayNum.sort() ); // outputs: -99,0,1.1,100,20.5,3.6,5.1
```

```
// Plugin function:
let outputAsc = $(arrayNum).sortAscending(); 
console.log(outputAsc); // outputs: -99,0,1.1,3.6,5.1,20.5,100
```

Sort items in *Descending order(Numbers):
```
// Plugin function:
let outputDsc = $(arrayNum).sortDescending();
console.log(outputDsc); // outputs: 100,20.5,5.1,3.6,1.1,0,-99
```

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