Arrays.sortStrings()

Sort an array of strings alphabetically (A to Z)

Usage

Hover over inputs/exits for more info.

var Arrays = require('machinepack-arrays');


// Sort an array of strings alphabetically (A to Z)

Arrays.sortStrings({

array: [ 'Roger Wilco' ],

}).execSync();

Inputs

array required

The array of strings to sort.

[ 'Roger Wilco' ]

Exits

error

An unexpected error occurred.

success

OK.

[ 'Roger Wilco' ]