// 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);