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 7af16f3 commit 6f3962cCopy full SHA for 6f3962c
src/helper.ts
@@ -165,7 +165,7 @@ export async function flattenAll<T>(promises: Promise<T[]>[]): Promise<T[]> {
165
166
export function compareStringByKey<T>(key: keyof T): (a: T, b: T) => number {
167
return (a, b) =>
168
- a[key] && b[key] ? `${a[key]}`.localeCompare(`${b[key]}`) : -1;
+ a[key] && b[key] ? `${a[key]}`.localeCompare(`${b[key]}`, 'en') : -1;
169
}
170
171
/**
0 commit comments