From 682c2d7691385ab789d4a3d48b603185d2530466 Mon Sep 17 00:00:00 2001 From: Tejaswini Rai Date: Thu, 14 May 2026 10:17:11 +0530 Subject: [PATCH] Dictionary index words sort case insensitive --- backend/app/crud/content_crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/crud/content_crud.py b/backend/app/crud/content_crud.py index 3d6b43c..bcc7947 100644 --- a/backend/app/crud/content_crud.py +++ b/backend/app/crud/content_crud.py @@ -311,7 +311,7 @@ def get_dictionary_index(db_: Session, resource_id: int): entries.append((word.word_id, form)) # Sort all entries by word form before grouping - entries.sort(key=lambda x: x[1]) + entries.sort(key=lambda x: x[1].lower()) # Group by first letter of the word form index_dict = {}