You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/completionEntryForUnionMethod.baseline
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4190,7 +4190,7 @@
4190
4190
"kind": "space"
4191
4191
},
4192
4192
{
4193
-
"text": "Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",
4193
+
"text": "Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",
Copy file name to clipboardExpand all lines: tests/lib/lib.d.ts
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1068,7 +1068,7 @@ interface Array<T> {
1068
1068
1069
1069
/**
1070
1070
* Sorts an array.
1071
-
* @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
1071
+
* @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
1072
1072
*/
1073
1073
sort(compareFn?: (a: T, b: T) => number): T[];
1074
1074
@@ -1612,7 +1612,7 @@ interface Int8Array {
1612
1612
/**
1613
1613
* Sorts an array.
1614
1614
* @param compareFn The name of the function used to determine the order of the elements. If
1615
-
* omitted, the elements are sorted in ascending, ASCII character order.
1615
+
* omitted, the elements are sorted in ascending, numerical order.
0 commit comments