For example I have typed array like this:
var a = new Int32Array([3,8,6,1,6,9]);
When I try to call a.sort(), it doesn't work.
What is the best way to sort typed arrays? What about performance, can we sort typed arrays faster than regular arrays?
[].sort.call(a)?Array.prototype.callthough)TypedArray.prototype.sort: stackoverflow.com/a/37684611/1647737