const arr = [100, 0, 45, 66, 89, 200];
arr.sort((a,b)=>{ return a-b; });
console.log(arr);
Created
November 4, 2018 05:26
-
-
Save koji/c35a98336470215279a7661341ae6a9e to your computer and use it in GitHub Desktop.
sort array
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment