We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2831422 commit df6ed38Copy full SHA for df6ed38
1 file changed
packages/browser-sdk/src/toolbar/Flags.tsx
@@ -33,8 +33,12 @@ export function FlagsTable({
33
34
// If both match or both don't match, sort alphabetically
35
if (aMatches === bMatches) {
36
- const aStartsWith = a.flagKey.toLowerCase().startsWith(searchQuery);
37
- const bStartsWith = b.flagKey.toLowerCase().startsWith(searchQuery);
+ const aStartsWith = a.flagKey
+ .toLocaleLowerCase()
38
+ .startsWith(searchQuery);
39
+ const bStartsWith = b.flagKey
40
41
42
43
// If one starts with search query and the other doesn't, prioritize the one that starts with it
44
if (aStartsWith && !bStartsWith) return -1;
0 commit comments