navyn_sort
v1.0.2
Published
"navynsort has got functions to help you arrange a collection(array) of numbers in descending order and another for arranging a string's characters in alphabetic order."
Downloads
4
Maintainers
Readme
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.