UNPKG

391 BJavaScriptView Raw
1'use strict';
2var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
4var aTypedArray = ArrayBufferViewCore.aTypedArray;
5var $sort = [].sort;
6
7// `%TypedArray%.prototype.sort` method
8// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.sort
9ArrayBufferViewCore.exportProto('sort', function sort(comparefn) {
10 return $sort.call(aTypedArray(this), comparefn);
11});