https://github.com/make-github-pseudonymous-again/js-sorting
:signal_strength: Sorting algorithms for JavaScript
https://github.com/make-github-pseudonymous-again/js-sorting
agpl algorithms bucket-sort counting-sort heap-sort javascript merge-sort quick-sort radix-sort sorting-algorithms
Last synced: about 1 month ago
JSON representation
:signal_strength: Sorting algorithms for JavaScript
- Host: GitHub
- URL: https://github.com/make-github-pseudonymous-again/js-sorting
- Owner: make-github-pseudonymous-again
- License: agpl-3.0
- Created: 2014-10-06T22:17:55.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2021-12-21T15:11:15.000Z (almost 4 years ago)
- Last Synced: 2024-04-13T09:58:43.156Z (over 1 year ago)
- Topics: agpl, algorithms, bucket-sort, counting-sort, heap-sort, javascript, merge-sort, quick-sort, radix-sort, sorting-algorithms
- Language: JavaScript
- Homepage: https://make-github-pseudonymous-again.github.io/js-sorting
- Size: 1.81 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:signal_strength:
[Sorting](https://make-github-pseudonymous-again.github.io/js-sorting)
[](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-sorting/main/LICENSE)
[](https://github.com/make-github-pseudonymous-again/js-sorting/issues)
==
© xkcd.com
Sorting algorithms for JavaScript.
See [docs](https://make-github-pseudonymous-again.github.io/js-sorting).
Parent is [js-algorithms](https://github.com/make-github-pseudonymous-again/js-algorithms).
> :building_construction: Caveat emptor! This is work in progress. Code may be
> working. Documentation may be present. Coherence may be. Maybe.
```js
import {isSorted} from '@comparison-sorting/is-sorted';
import {increasing, decreasing} from '@total-order/primitive';
isSorted(increasing, [1, 2, 3], 0, 3); // true
isSorted(decreasing, [1, 2, 3], 0, 3); // false
```
## :baby: Children
This package has several children:
### :balance_scale: Comparison sorting
#### Spec
- :notebook_with_decorative_cover: [@comparison-sorting/specification](https://github.com/comparison-sorting/specification): Comparison sorting specification for JavaScript
#### In-place
- :leaves: [@comparison-sorting/heap-sort](https://github.com/comparison-sorting/heap-sort): heapsort for JavaScript
- :rabbit2: [@comparison-sorting/quick-sort](https://github.com/comparison-sorting/quick-sort): quicksort for JavaScript
- :rewind: [@comparison-sorting/insertion-sort](https://github.com/comparison-sorting/insertion-sort): Insertion sorting algorithms for JavaScript
- :person_fencing: [@comparison-sorting/merge-insertion-sort](https://github.com/comparison-sorting/merge-insertion-sort): Ford-Johnson algorithm for JavaScript
#### Stable
- :dragon: [@comparison-sorting/merge-sort](https://github.com/comparison-sorting/merge-sort): mergesort for JavaScript
#### Input oblivious
- :musical_score: [@comparison-sorting/odd-even-merge-sort](https://github.com/comparison-sorting/odd-even-merge-sort): Batcher's odd-even mergesort for JavaScript
#### Subroutines
- :waning_gibbous_moon: [@comparison-sorting/merging](https://github.com/comparison-sorting/merging): merging for JavaScript
- :cake: [@comparison-sorting/partition](https://github.com/comparison-sorting/partition): partition for JavaScript
- :point_down: [@comparison-sorting/selection](https://github.com/comparison-sorting/selection): selection for JavaScript
### :zzz: Integer sorting
- :oden: [@integer-sorting/radix-sort](https://github.com/integer-sorting/radix-sort): Radix sorting algorithms for JavaScript
- [js-countingsort](https://github.com/make-github-pseudonymous-again/js-countingsort): countingsort for JavaScript
- [js-bucketsort](https://github.com/make-github-pseudonymous-again/js-bucketsort): bucketsort for JavaScript
## :link: Links
- https://sorting.at