sort-x
JavaScript to achieve the ten common sorting algorithm library
Last updated 2 years ago by c.xin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sort-x 
SYNC missed versions from official npm registry.

sort-x

codecov

Install

Npm: npm install --save sort-x

Yarn: yarn add sort-x

Umd:

<script src="path/sort-x/dist/index.js"></script>
sortX.bubble([3, 4, 2, 1]) // [1, 2, 3, 4]
sortX.selection([3, 4, 2, 1]) // [1, 2, 3, 4]

Demo

import {bubble} from 'sort-x';
// In your render...
bubble([3, 4, 2, 1]) // [1, 2, 3, 4]


import {selection} from 'sort-x';
// In your render...
selection([3, 4, 2, 1]) // [1, 2, 3, 4]

import {insertion} from 'sort-x';
// In your render...
insertion([3, 4, 2, 1]) // [1, 2, 3, 4]

ex: 

Util

import {sorted} from 'sort-x';
sorted([3, 4, 2, 1]) // false
sorted([1, 2, 3, 4]) // true

Current Tags

  • 0.0.7                                ...           latest (2 years ago)

7 Versions

  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 3
Dependencies (1)
Dev Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |