Skip to content

Commit

Permalink
Ignore case when sorting generated dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrox committed Apr 9, 2024
1 parent 57a95d0 commit b8c46c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/spell_checker/gen_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ def gen_dictionary():
dictionary.add(norm)
dict_path = os.path.join(os.path.dirname(__file__), "dictionary.txt")
with open(dict_path, "w", encoding="utf-8") as fp:
for word in sorted(dictionary):
for word in sorted(dictionary, key=lambda v: (v.lower(), v)):
print(word, file=fp)

0 comments on commit b8c46c0

Please sign in to comment.