Skip to content

Commit

Permalink
Fix search index sort #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic16x committed Dec 11, 2024
1 parent 77fa121 commit 1976a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class DictionaryClass {
].forEach((lang) => {
searchIndex[lang] = Array.from(this.splittedMap[lang].keys()).map((key: string) => [
key,
this.splittedMap[lang].get(key),
this.splittedMap[lang].get(key).sort(),
]).sort((a, b) => a[1][0].localeCompare(b[1][0]))
})

Expand Down

0 comments on commit 1976a99

Please sign in to comment.