Created
September 11, 2018 16:47
-
-
Save djom202/2f6244e082e7e9b537b9e13ab6446b1f to your computer and use it in GitHub Desktop.
Sort numeric array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sortArr(arr){ | |
return arr.sort(function (a, b){ | |
return a - b; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment