JSPM

sort-alphabetic

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

Sort an array alphabetically, ignoring case

Package Exports

  • sort-alphabetic

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

Readme

sort-alphabetic Build Status

Sort an array alphabetically, ignoring case

Install

$ npm install --save sort-alphabetic

Usage

const sortAlphabetic = require('sort-alphabetic');

sortAlphabetic('unicorns');
//=> 'unicorns & rainbows'

API

sortAlphabetic(input, [options])

input

Type: array

The array to sort

options

start

Type: int
Default: false

The character position to begin sorting at.

CLI

$ npm install --global sort-alphabetic
$ sort-alphabetic --help

  Usage
    $ sort-alphabetic [input]

  Options
    --start  The character position to start alphabetizing from. [Default: false]

  Examples
    $ sort-alphabetic ONE one Two
    [ 'ONE', 'one', 'TWO' ]
    $ sort-alphabetic cONE bone aTwo --start=1
    [ 'cONE', 'bone', 'aTWO' ]

License

MIT © Richard Littauer