# sort-view

> Different types of sort with visual representation

Latest version **1.0.7** (published 2024-04-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install sort-view
pnpm add sort-view
yarn add sort-view
bun add sort-view
```

## 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.7 |
| Published | 2024-04-17 |
| First published | 2024-04-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Viraj Dharme |
| Maintainers | vdharme |
| Keywords | sort, sort-view, sort view, view sort, bubblesort, insertionsort, selectionsort |

## Links

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

## Recent versions

- 1.0.7 (latest) — 2024-04-17
- 1.0.6 — 2024-04-17
- 1.0.5 — 2024-04-17
- 1.0.4 — 2024-04-16
- 1.0.3 — 2024-04-16
- 1.0.2 — 2024-04-14
- 1.0.1 — 2024-04-14
- 1.0.0 — 2024-04-13

## README

# sort-view

Different types of sort with visual representation

## Installation
```sh
npm install sort-view
```

Sorting algorithms can be complex to understand merely by looking at their code. Visualizations in command-prompt provide a graphical representation of how the algorithm works step by step, making it easier to understand the underlying logic and behavior.<br/><br/>

<b>Key points to remember while using visualization</b><br/>
<ul>
<li>Array length should be less than 10 for visualization</li>
<li>Visualization works best when numbers are in the range 0 to 9</li>
</ul>
<br/>

**Note:** The above points are valid only in case of visualization. If there is no need of visualization then any length of numeric array will be sorted and returned.<br/><br/>

<b>Available methods: </b><br/>

1. bubblesort(array, view = boolean)<br/>
    This function takes 2 arguments where the view argument is optional to view how the sort is working at each step. The first argument is an array. The function sorts the original array using bubblesort and returns it.
    <br/>

2. insertionsort(array, view = boolean)<br/>
    This function takes 2 arguments where the view argument is optional to view how the sort is working at each step. The first argument is an array. The function sorts the original array using insertionsort and returns it.
    <br/>

3. selectionsort(array, view = boolean)<br/>
    This function takes 2 arguments where the view argument is optional to view how the sort is working at each step. The first argument is an array. The function sorts the original array using selectionsort and returns it.
    <br/>

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