Package Exports
- sort-types
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sort-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Types of sorts
Different types of sorts with their complexity and best/worst case scenarios.
Has the following types of sorts
* Bubble sort
* Selection sort
* Insertion sort
* Merge sort
* Quick sortInstall
npm install 'sort-types';If you want to play around, you may use the functions like this
import { bubbleSort } from 'sort-types';
bubbleSort([3,1,8,4,2]);Few upcoming sorts
* Radix sort
* Bucket sort
* Heap sortKnown issues
The merge-sort is not implemented properly. It is still WIP.