h-sort
Version:
simple and fast heap-sort
22 lines (15 loc) • 569 B
Markdown
# h-sort : simple and fast heap-sort
## All process have a avg of 0~1 mileseconds!!!
## Using a array of 3.000 itens all process have a avg 138 mileseconds !!!
## I will help if you have any difficulty =)
Contact me by [github:heyderpd](https://github.com/heyderpd). I'll be glad to help you.
## Thanks for [npm~lucasmreis](https://www.npmjs.com/~lucasmreis)
```javascript
npm install --save h-sort
```
## Example:
```javascript
const heapSort = require('h-sort')
const array = [5, 6, 2, 8, 4, 9, 3, 7, 1, 0]
heapSort(array) // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
```