diff options
author | 2022-10-28 02:27:26 +0400 | |
---|---|---|
committer | 2022-10-28 02:27:26 +0400 | |
commit | 426fc71b25e3ba0572d8a294ef98c2302528a661 (patch) | |
tree | 09942c7e6a95e67c365a841e99e2bf492ea31029 /pydis_site/apps/content/utils.py | |
parent | Clean Up Typing (diff) |
Use `casefold` Instead Of `lower`
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/content/utils.py')
-rw-r--r-- | pydis_site/apps/content/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py index 8e3b0bd7..5fa6353c 100644 --- a/pydis_site/apps/content/utils.py +++ b/pydis_site/apps/content/utils.py @@ -295,7 +295,7 @@ def get_tag_category(tags: list[Tag] | None = None, *, collapse_groups: bool) -> data.append(group) # Sort the tags, and return them in the proper format - return {tag["title"]: tag for tag in sorted(data, key=lambda tag: tag["title"].lower())} + return {tag["title"]: tag for tag in sorted(data, key=lambda tag: tag["title"].casefold())} def get_category_pages(path: Path) -> dict[str, dict]: |