JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 188532
  • Score
    100M100P100Q171130F
  • License MIT

Sort an array of numbers

Package Exports

  • num-sort

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 (num-sort) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

num-sort Build Status

Sort an array of numbers

Install

$ npm install --save num-sort

Usage

var numSort = require('num-sort');

[9, 3, 24].sort(numSort.asc);
//=> [3, 9, 24]

API

numSort.asc

Ascending sort.

numSort.desc

Descending sort.

  • alpha-sort - Alphabetically sort an array of strings

License

MIT © Sindre Sorhus