1.0.1 • Published 4 years ago

mp-sort v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

mp-sort

New package to publish on NPM registry

A Node.js module that returns a sorted list

Installation

npm install mp-sort --save
yarn add mp-sort
bower install mp-sort --save

Usage

Javascript

var sort = require("mp-sort");
var sortedList = sort.bubbleSort([3, 6, 5, 1, 4, 2, 8, 9, 7]);
Output should be '[1,2,3,4,5,6,7,8,9]'

TypeScript

import { bubbleSort } from "mp-sort";
console.log(bubbleSort(["Miguel", "Andrea", "Ana", "Julian", "Fernando", "Luis"]));
Output should be ["Ana", "Andrea", "Fernando", "Julian", "Luis", "Miguel"]

AMD

define(function (require, exports, module) {
  var sort = require("mp-sort");
});

Test

npm run test