Arrays.sortNumbers()

Sort an array of numbers (ascending)

Usage

Hover over inputs/exits for more info.

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


// Sort an array of numbers (ascending)

Arrays.sortNumbers({

array: [ 2 ],

}).execSync();

Inputs

array required

The array of numbers to sort.

[ 2 ]

Exits

error

An unexpected error occurred.

success

OK.

[ 2 ]