The sort()
method sorts the elements of a typed array numerically in place and returns the typed array. This method has the same algorithm as Array.prototype.sort()
, except that sorts the values numerically instead of as strings. TypedArray is one of the typed array types here.