Skip to content

Commit f325c93

Browse files
committed
Update misc.ts
1 parent c628669 commit f325c93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/firestore/src/util/misc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ export function compareUtf8Strings(left: string, right: string): number {
103103
return comparison;
104104
}
105105
}
106+
107+
// Compare lengths if all bytes are equal
108+
return primitiveComparator(leftBytes.length, rightBytes.length);
106109
}
107110
}
108111

0 commit comments

Comments
 (0)