Skip to content

Commit

Permalink
Fix search index sort (#363)
Browse files Browse the repository at this point in the history
* Fix search index sort

* Fix search index sort #1
  • Loading branch information
sonic16x authored Dec 11, 2024
1 parent e4d64cd commit 87d38e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interslavic",
"version": "1.25.3",
"version": "1.25.4",
"description": "Interslavic Dictionary",
"license": "MIT",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions src/services/dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ 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]))
})

return searchIndex
Expand Down

0 comments on commit 87d38e1

Please sign in to comment.