Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sort array of numbers js

var numArray = [140000, 104, 99];
numArray.sort(function(a, b) {
  return a - b;
});

console.log(numArray);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #array #numbers #js
ADD COMMENT
Topic
Name
2+5 =