JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q31587F
  • License ISC

Different types of sorts with their complexity and best/worst case scenarios.

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 sort

Install

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 sort

Known issues

The merge-sort is not implemented properly. It is still WIP.