@@ -191,7 +191,7 @@ interface Int8Array {
191
191
* Copies and sorts the array.
192
192
* @param compareFn Function used to determine the order of the elements. It is expected to return
193
193
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
194
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
194
+ * value otherwise. If omitted, the elements are sorted in ascending order.
195
195
* ```ts
196
196
* const myNums = Uint8Array.from([11, 2, 22, 1]);
197
197
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
@@ -255,7 +255,7 @@ interface Uint8Array {
255
255
* Copies and sorts the array.
256
256
* @param compareFn Function used to determine the order of the elements. It is expected to return
257
257
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
258
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
258
+ * value otherwise. If omitted, the elements are sorted in ascending order.
259
259
* ```ts
260
260
* const myNums = Uint8Array.from([11, 2, 22, 1]);
261
261
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
@@ -327,7 +327,7 @@ interface Uint8ClampedArray {
327
327
* Copies and sorts the array.
328
328
* @param compareFn Function used to determine the order of the elements. It is expected to return
329
329
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
330
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
330
+ * value otherwise. If omitted, the elements are sorted in ascending order.
331
331
* ```ts
332
332
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
333
333
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
@@ -391,7 +391,7 @@ interface Int16Array {
391
391
* Copies and sorts the array.
392
392
* @param compareFn Function used to determine the order of the elements. It is expected to return
393
393
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
394
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
394
+ * value otherwise. If omitted, the elements are sorted in ascending order.
395
395
* ```ts
396
396
* const myNums = Int16Array.from([11, 2, -22, 1]);
397
397
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
@@ -463,7 +463,7 @@ interface Uint16Array {
463
463
* Copies and sorts the array.
464
464
* @param compareFn Function used to determine the order of the elements. It is expected to return
465
465
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
466
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
466
+ * value otherwise. If omitted, the elements are sorted in ascending order.
467
467
* ```ts
468
468
* const myNums = Uint16Array.from([11, 2, 22, 1]);
469
469
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
@@ -527,7 +527,7 @@ interface Int32Array {
527
527
* Copies and sorts the array.
528
528
* @param compareFn Function used to determine the order of the elements. It is expected to return
529
529
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
530
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
530
+ * value otherwise. If omitted, the elements are sorted in ascending order.
531
531
* ```ts
532
532
* const myNums = Int32Array.from([11, 2, -22, 1]);
533
533
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
@@ -599,7 +599,7 @@ interface Uint32Array {
599
599
* Copies and sorts the array.
600
600
* @param compareFn Function used to determine the order of the elements. It is expected to return
601
601
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
602
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
602
+ * value otherwise. If omitted, the elements are sorted in ascending order.
603
603
* ```ts
604
604
* const myNums = Uint32Array.from([11, 2, 22, 1]);
605
605
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
@@ -671,7 +671,7 @@ interface Float32Array {
671
671
* Copies and sorts the array.
672
672
* @param compareFn Function used to determine the order of the elements. It is expected to return
673
673
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
674
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
674
+ * value otherwise. If omitted, the elements are sorted in ascending order.
675
675
* ```ts
676
676
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
677
677
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
@@ -743,7 +743,7 @@ interface Float64Array {
743
743
* Copies and sorts the array.
744
744
* @param compareFn Function used to determine the order of the elements. It is expected to return
745
745
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
746
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
746
+ * value otherwise. If omitted, the elements are sorted in ascending order.
747
747
* ```ts
748
748
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
749
749
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
@@ -815,7 +815,7 @@ interface BigInt64Array {
815
815
* Copies and sorts the array.
816
816
* @param compareFn Function used to determine the order of the elements. It is expected to return
817
817
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
818
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
818
+ * value otherwise. If omitted, the elements are sorted in ascending order.
819
819
* ```ts
820
820
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
821
821
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
@@ -887,7 +887,7 @@ interface BigUint64Array {
887
887
* Copies and sorts the array.
888
888
* @param compareFn Function used to determine the order of the elements. It is expected to return
889
889
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
890
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
890
+ * value otherwise. If omitted, the elements are sorted in ascending order.
891
891
* ```ts
892
892
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
893
893
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
0 commit comments