Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sort array in ascending javascript

// a very fast sort implementation
var numArray = new Float64Array([140000, 104, 99]);
numArray = numArray.sort();
console.log(numArray)

// to convert Float64Array to standard Array:
Array.from(numArray);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #array #ascending #javascript
ADD COMMENT
Topic
Name
6+3 =