We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b217f4a commit bb4653dCopy full SHA for bb4653d
packages/firestore/src/util/misc.ts
@@ -110,7 +110,7 @@ export function compareUtf8Strings(left: string, right: string): number {
110
// direct comparison of the UTF-16 code units, as would be done in case 1, would erroneously
111
// produce the _opposite_ ordering, because 0xFFFD is _greater than_ 0xD83D. As it turns out,
112
// this relative ordering holds for all comparisons of UTF-16 code points requiring a surrogate
113
- // pair with those that do not.
+ // pair with those that do not.
114
const length = Math.min(left.length, right.length);
115
for (let i = 0; i < length; i++) {
116
const leftChar = left.charAt(i);
0 commit comments