## Sorting Arrays of numbers

### Install Numbersort

```bash
npm i numbersort
```

### Import numbersort into your app

```js
import numbersort from "numbersort";
```

### Redeclare to array for e.g (optional)

```js
const array = numbersort;
```

### Example array

```js
const numbers = [1, 5, 8, 4, 10, 30];
```

### Find the largest number in an array

```js
const largest = array.largestNumber(numbers);
```

### Find the smallest number in an array

```js
const smallest = array.smallestNumber(numbers);
```

### Sort an array of numbers in ascending order

```js
const ascending = numbers.sort(array.Ascend);
```

### Sort an array of numbers in descending order

```js
const descending = numbers.sort(array.Descend);
```
