Answers for "mathjs order numbers"

1

javascript sort numbers

var numArray = [140000, 104, 99];

numArray.sort(function(a, b) {
  return a - b;
});

// Array(3) [ 99, 104, 140000 ]
Posted by: Guest on January-27-2021

Code answers related to "mathjs order numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language