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