diff --git a/app/client/lib/ACIndex.ts b/app/client/lib/ACIndex.ts index a67e1e49..c3f638b4 100644 --- a/app/client/lib/ACIndex.ts +++ b/app/client/lib/ACIndex.ts @@ -163,7 +163,7 @@ export class ACIndexImpl implements ACIndex { */ private _findOverlaps(searchWord: string, searchWordPos: number): Map { const insertIndex = sortedIndex<{word: string}>(this._words, {word: searchWord}, - (a, b) => nativeCompare(a.word, b.word)); + (a, b) => localeCompare(a.word, b.word)); // Maps index of item to its score. const scored = new Map();