navyn_sort

1.0.2 • Public • Published

navyn_sort

navyn_sort contains functions that help you to sort numbers in ascending order and alphabets in descending order easily

After installing and importing the package module you have access to two functions alphaSort and numSort

numSort

numSort receives a collection/an array of numbers and returns an arranged, in descending order version of that array. syntax:

var arranged = numSort(numCollection); console.log(arranged);

alphaSort

alphaSort receives a string and arranges its content in alphabetic order syntax:

var arranged = alphaSort(textString); console.log(arranged);


Have fun using navyn_sort package,and thanks for considering navyn_sort. and by the way navyn is a double anagram of my name Yvan.

Package Sidebar

Install

npm i navyn_sort

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

2.46 kB

Total Files

3

Last publish

Collaborators

  • navy_n