https://github.com/denq/via-sort
This package is a convenient wrapper for most standard sorting methods. Such as quickSort, mergeSort and others.
https://github.com/denq/via-sort
algorithm-library heapsort npm performance quicksort selectionsort sorting-algorithms
Last synced: 7 months ago
JSON representation
This package is a convenient wrapper for most standard sorting methods. Such as quickSort, mergeSort and others.
- Host: GitHub
- URL: https://github.com/denq/via-sort
- Owner: DenQ
- License: mit
- Created: 2017-01-30T17:56:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T14:00:05.000Z (over 8 years ago)
- Last Synced: 2025-02-21T06:16:13.417Z (8 months ago)
- Topics: algorithm-library, heapsort, npm, performance, quicksort, selectionsort, sorting-algorithms
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# via-sort
This package is a convenient wrapper for most standard sorting methods. Such as quickSort, mergeSort and others.
### How to use?
```
var array = [2, 3, 1, 2, 6, 5];
var sortedArray = viaSort('quick', array);
console.log(sortedArray) // [1, 2, 2, 3, 5, 6]
```### Where to use it?
Standard method `.sort()` significantly slower `quickSort`.
To check it out there is a script
```
node performance/index.js
```
output
```
10 'native sort method'
85 'insertion'
4 'quick'
14 'merge'```
Where time described in milliseconds### TDD
```
npm test
```#### Community
I will be glad your `pull requests`